Skip to content

Commit

Permalink
Correct post-release job for Stream 8 (#2812)
Browse files Browse the repository at this point in the history
* Correct post-release job for Stream 8

* Update Jenkinsfile.post-release
  • Loading branch information
radtriste authored May 4, 2023
1 parent 66e7062 commit 170de1c
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .ci/jenkins/project/Jenkinsfile.post-release
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ pipeline {
}
}
}

stage('Prepare for post-release') {
steps {
script {
dir(optaplannerRepository) {
checkoutTag(optaplannerRepository, getProjectVersion(), stableBranchName)
}
dir(quickstartsRepository) {
checkoutTag(quickstartsRepository, getGitTag(), stableBranchName)
}
}
}
}

stage('Reset Quickstarts stable branch') {
when {
Expand All @@ -63,7 +76,6 @@ pipeline {
steps {
script {
dir(quickstartsRepository) {
checkoutTag(quickstartsRepository, getGitTag(), stableBranchName)
removeJbossNexusFromMavenAndGradle()
commitAndForcePushBranch(quickstartsRepository, stableBranchName)
}
Expand All @@ -74,11 +86,7 @@ pipeline {
stage('Upload OptaPlanner distribution from Quickstarts') {
steps {
script {
dir(optaplannerRepository) {
checkoutTag(optaplannerRepository, getProjectVersion(), stableBranchName)
getMavenCommand().withProperty('quickly').withProperty('full').run('clean install')
}

getMavenCommand().inDirectory(optaplannerRepository).withProperty('quickly').withProperty('full').run('clean install')
getMavenCommand().inDirectory(quickstartsRepository).skipTests(true).withProperty('full').run('clean install')
uploadDistribution(quickstartsRepository)
}
Expand Down Expand Up @@ -284,4 +292,4 @@ boolean isStream8() {

boolean isStream9() {
return env.OPTAPLANNER_LATEST_STREAM == '9'
}
}

0 comments on commit 170de1c

Please sign in to comment.