Class MigrationStep11
java.lang.Object
org.jenkinsci.plugins.pipeline.maven.db.migration.h2.MigrationStep11
- All Implemented Interfaces:
MigrationStep
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jenkinsci.plugins.pipeline.maven.db.migration.MigrationStep
MigrationStep.JenkinsDetails
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(Connection cnn, MigrationStep.JenkinsDetails jenkinsDetails) protected Integer
findLastBuildNumber
(Connection cnn, long jobPrimaryKey) protected void
updateJenkinsJobRecord
(Connection cnn, long jenkinsJobPrimaryKey, int lastBuildNumber)
-
Constructor Details
-
MigrationStep11
public MigrationStep11()
-
-
Method Details
-
execute
public void execute(@NonNull Connection cnn, @NonNull MigrationStep.JenkinsDetails jenkinsDetails) throws SQLException - Specified by:
execute
in interfaceMigrationStep
- Throws:
SQLException
-
updateJenkinsJobRecord
protected void updateJenkinsJobRecord(@NonNull Connection cnn, long jenkinsJobPrimaryKey, int lastBuildNumber) throws SQLException - Throws:
SQLException
-
findLastBuildNumber
@Nullable protected Integer findLastBuildNumber(@NonNull Connection cnn, long jobPrimaryKey) throws SQLException - Returns:
- the last
Run.getNumber()
ornull
if no build found - Throws:
SQLException
-