From 4ec0d9f47b284f34a167f06b2de3969076449203 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Wed, 14 Aug 2019 00:00:57 -0400 Subject: [PATCH] Add RELEASE-STAGING settings. --- Jenkinsfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1a92bcd..88da037 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,6 +22,13 @@ if (params.Type == 'RELEASE-DRY-RUN') { maven_local_repo_path = "${agent_root_folder}/local-releases" maven_settings_file = "${agent_root_folder}/.m2/jenkins-releases-dry-run-settings.xml" } +if (params.Type == 'RELEASE-STAGING') { + echo "Configure Maven for RELEASE-STAGING artifacts" + options = '' + maven_local_repo_path = "${agent_root_folder}/local-staging" + maven_settings_file = "${agent_root_folder}/.m2/jenkins-staging-settings.xml" + echo "This will fail. RELEASES are currently disabled until further testing." +} if (params.Type == 'RELEASE') { echo "Configure Maven for RELEASE artifacts" options = '' @@ -50,7 +57,7 @@ pipeline { // see https://jenkins.io/doc/book/pipeline/syntax/#parameters parameters { choice(name: 'Type', - choices: ['SNAPSHOT-DRY-RUN', 'SNAPSHOT', 'RELEASE-DRY-RUN', 'RELEASE'], + choices: ['SNAPSHOT-DRY-RUN', 'SNAPSHOT', 'RELEASE-DRY-RUN', 'RELEASE-STAGING', 'RELEASE'], description: 'The type of artifacts the build is expected to generate') string(name: 'gCube_release_number',