Class LegacyMonitorData.LegacyBuildStorage
java.lang.Object
hudson.plugins.copyartifact.monitor.LegacyMonitorData.LegacyBuildStorage
- Enclosing class:
LegacyMonitorData
Data stored in the monitor
Information about the build that would fail in Production mode.
-
Constructor Summary
ConstructorsConstructorDescriptionLegacyBuildStorage(String jobFullNameFrom, String jobFullNameTo, String username, Date lastBuildDate) ctor. -
Method Summary
Modifier and TypeMethodDescriptionaddNewBuild(String username, Date lastBuildDate) Create a new build information.intrenameJobFrom(String newJobFullName) Create a new build information renaming the source job.renameJobTo(String newJobFullName) Create a new build information renaming the destination job.toString()
-
Constructor Details
-
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 Details
-
getJobFullNameFrom
- Returns:
- the name of the source job.
-
getJobFullNameTo
- Returns:
- the name of the destination job.
-
getUsername
- Returns:
- the user name that the destination job ran as.
-
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
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
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.
-
toString
-