Skip to content

Commit

Permalink
Fixes for release build in Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrpav authored Feb 6, 2024
1 parent ce79359 commit feb6f97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ pipeline {
script {
if (params.mavenDebug) {
if (!params.ReleaseVersion.isEmpty() && !params.NextSnapshotVersion.isEmpty()) {
sh "mvn -Psonatype-oss-release -X -B -Darguments=\"-DskipTests=true -Dmpir.skip=true\" -DignoreSnapshots=true -DskipTests=true -Dmpir.skip=true -DreleaseVersion=${params.ReleaseVersion} -DdevelopmentVersion=${params.NextSnapshotVersion} validate release:clean release:prepare release:perform"
sh "mvn -Psonatype-oss-release,release -X -B -Darguments=\"-DskipTests=true -Dmpir.skip=true\" -DperformRelease -DignoreSnapshots=true -DskipTests=true -Dmpir.skip=true -DreleaseVersion=${params.ReleaseVersion} -DdevelopmentVersion=${params.NextSnapshotVersion} validate release:clean release:prepare release:perform clean install"
} else {
sh "mvn -Psonatype-oss-release -X -B -Darguments=\"-DskipTests=true -Dmpir.skip=true\" -DignoreSnapshots=true -DskipTests=true -Dmpir.skip=true validate release:clean release:prepare release:perform"
sh "mvn -Psonatype-oss-release,release -X -B -Darguments=\"-DskipTests=true -Dmpir.skip=true\" -DperformRelease -DignoreSnapshots=true -DskipTests=true -Dmpir.skip=true validate release:clean release:prepare release:perform clean install"
}
} else {
if (!params.ReleaseVersion.isEmpty() && !params.NextSnapshotVersion.isEmpty()) {
sh "mvn -Psonatype-oss-release -B -Darguments=\"-DskipTests=true -Dmpir.skip=true\" -DignoreSnapshots=true -DskipTests=true -Dmpir.skip=true -DreleaseVersion=${params.ReleaseVersion} -DdevelopmentVersion=${params.NextSnapshotVersion} validate release:clean release:prepare release:perform"
sh "mvn -Psonatype-oss-release,release -B -Darguments=\"-DskipTests=true -Dmpir.skip=true\" -DperformRelease -DignoreSnapshots=true -DskipTests=true -Dmpir.skip=true -DreleaseVersion=${params.ReleaseVersion} -DdevelopmentVersion=${params.NextSnapshotVersion} validate release:clean release:prepare release:perform clean install"
} else {
sh 'mvn -Psonatype-oss-release -B -Darguments="-DskipTests=true -Dmpir.skip=true" -DignoreSnapshots=true -DskipTests=true -Dmpir.skip=true validate release:clean release:prepare release:perform'
sh 'mvn -Psonatype-oss-release,release -B -Darguments="-DskipTests=true -Dmpir.skip=true" -DperformRelease -DignoreSnapshots=true -DskipTests=true -Dmpir.skip=true validate release:clean release:prepare release:perform clean install'
}
}
}
Expand Down

0 comments on commit feb6f97

Please sign in to comment.