Class LegacyMonitorData.LegacyBuildStorage
- java.lang.Object
-
- hudson.plugins.copyartifact.monitor.LegacyMonitorData.LegacyBuildStorage
-
- Enclosing class:
- LegacyMonitorData
public static class LegacyMonitorData.LegacyBuildStorage extends Object
Data stored in the monitor Information about the build that would fail in Production mode.
-
-
Constructor Summary
Constructors Constructor Description LegacyBuildStorage(String jobFullNameFrom, String jobFullNameTo, String username, Date lastBuildDate)
ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LegacyMonitorData.LegacyBuildStorage
addNewBuild(String username, Date lastBuildDate)
Create a new build information.String
getJobFullNameFrom()
String
getJobFullNameTo()
Date
getLastBuildDate()
int
getNumOfBuild()
String
getUsername()
LegacyMonitorData.LegacyBuildStorage
renameJobFrom(String newJobFullName)
Create a new build information renaming the source job.LegacyMonitorData.LegacyBuildStorage
renameJobTo(String newJobFullName)
Create a new build information renaming the destination job.String
toString()
-
-
-
Constructor Detail
-
LegacyBuildStorage
public LegacyBuildStorage(@NonNull String jobFullNameFrom, @NonNull String jobFullNameTo, @NonNull String username, @NonNull Date lastBuildDate)
ctor.- Parameters:
jobFullNameFrom
- the name of the source job.jobFullNameTo
- the name of the destination job.username
- the user name that the destination job ran as.lastBuildDate
- the build timestamp.
-
-
Method Detail
-
getJobFullNameFrom
@NonNull public String getJobFullNameFrom()
- Returns:
- the name of the source job.
-
getJobFullNameTo
@NonNull public String getJobFullNameTo()
- Returns:
- the name of the destination job.
-
getUsername
@NonNull public String getUsername()
- Returns:
- the user name that the destination job ran as.
-
getLastBuildDate
@NonNull public Date getLastBuildDate()
- Returns:
- the build timestamp.
-
getNumOfBuild
public int getNumOfBuild()
- Returns:
- the number of builds that would fail in Production mode.
-
addNewBuild
@NonNull public LegacyMonitorData.LegacyBuildStorage addNewBuild(String username, Date lastBuildDate)
Create a new build information.- Parameters:
username
- the user name that the destination job ran as.lastBuildDate
- the build timestamp.- Returns:
- data to store in the monitor.
-
renameJobFrom
public LegacyMonitorData.LegacyBuildStorage renameJobFrom(String newJobFullName)
Create a new build information renaming the source job.- Parameters:
newJobFullName
- the new name of the source job.- Returns:
- data to store in the monitor.
-
renameJobTo
public LegacyMonitorData.LegacyBuildStorage renameJobTo(String newJobFullName)
Create a new build information renaming the destination job.- Parameters:
newJobFullName
- the new name of the destination job.- Returns:
- data to store in the monitor.
-
-