add value to "maven_activation_property" cases

This commit is contained in:
Roberto Cirillo 2022-02-21 14:10:17 +01:00
parent 7a0ef754a1
commit d3243c1ffe
1 changed files with 5 additions and 5 deletions

10
Jenkinsfile vendored
View File

@ -10,8 +10,8 @@ if (params.Type == 'SNAPSHOT-DRY-RUN') {
echo "Configure Maven for SNAPSHOT-DRY-RUN artifacts" echo "Configure Maven for SNAPSHOT-DRY-RUN artifacts"
options = '' options = ''
maven_local_repo_path = "local-snapshots" maven_local_repo_path = "local-snapshots"
maven_settings_file = "jenkins-snapshots-dry-run-settings.xml" maven_settings_file = "jenkins-snapshots-dry-run-settings.xml"
maven_activation_property="-Pgcube-developer,dry-run"; maven_activation_property="-Pdry-run";
maven_parent_file = "jenkins-snapshots-dry-run-settings.xml" maven_parent_file = "jenkins-snapshots-dry-run-settings.xml"
} }
if (params.Type == 'SNAPSHOT') { if (params.Type == 'SNAPSHOT') {
@ -27,7 +27,7 @@ if (params.Type == 'RELEASE-DRY-RUN') {
options = '' options = ''
maven_local_repo_path = "local-releases" maven_local_repo_path = "local-releases"
maven_settings_file = "jenkins-releases-dry-run-settings.xml" 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" maven_parent_file = "jenkins-releases-dry-run-settings.xml"
} }
if (params.Type == 'STAGING') { if (params.Type == 'STAGING') {
@ -35,7 +35,7 @@ if (params.Type == 'STAGING') {
options = '' options = ''
maven_local_repo_path = "local-staging" maven_local_repo_path = "local-staging"
maven_settings_file = "jenkins-staging-settings.xml" 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" maven_parent_file = "jenkins-staging-dry-run-settings.xml"
} }
if (params.Type == 'RELEASE') { if (params.Type == 'RELEASE') {
@ -43,7 +43,7 @@ if (params.Type == 'RELEASE') {
options = '' options = ''
maven_local_repo_path = "local-releases" maven_local_repo_path = "local-releases"
maven_settings_file = "jenkins-releases-settings.xml" 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" maven_parent_file = "jenkins-releases-dry-run-settings.xml"
} }