diff --git a/Jenkinsfile b/Jenkinsfile index 8a010a0..42d8f78 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,8 +10,8 @@ if (params.Type == 'SNAPSHOT-DRY-RUN') { echo "Configure Maven for SNAPSHOT-DRY-RUN artifacts" options = '' maven_local_repo_path = "local-snapshots" - maven_settings_file = "jenkins-snapshots-dry-run-settings.xml" - maven_activation_property="-Pgcube-developer,dry-run"; + maven_settings_file = "jenkins-snapshots-dry-run-settings.xml" + maven_activation_property="-Pdry-run"; maven_parent_file = "jenkins-snapshots-dry-run-settings.xml" } if (params.Type == 'SNAPSHOT') { @@ -27,7 +27,7 @@ if (params.Type == 'RELEASE-DRY-RUN') { options = '' maven_local_repo_path = "local-releases" maven_settings_file = "jenkins-releases-dry-run-settings.xml" - maven_activation_property="-Pdry-run -Djenkins-releases=true -DRelease"; + maven_activation_property="-Pdry-run -Djenkins-releases -DRelease"; maven_parent_file = "jenkins-releases-dry-run-settings.xml" } if (params.Type == 'STAGING') { @@ -35,7 +35,7 @@ if (params.Type == 'STAGING') { options = '' maven_local_repo_path = "local-staging" maven_settings_file = "jenkins-staging-settings.xml" - maven_activation_property="-Djenkins-staging=true -DRelease"; + maven_activation_property="-Djenkins-staging -DRelease"; maven_parent_file = "jenkins-staging-dry-run-settings.xml" } if (params.Type == 'RELEASE') { @@ -43,7 +43,7 @@ if (params.Type == 'RELEASE') { options = '' maven_local_repo_path = "local-releases" maven_settings_file = "jenkins-releases-settings.xml" - maven_activation_property="-Djenkins-releases=true -DRelease"; + maven_activation_property="-Djenkins-releases -DRelease"; maven_parent_file = "jenkins-releases-dry-run-settings.xml" }