Add RELEASE-STAGING settings.

This commit is contained in:
Manuele Simi 2019-08-14 00:00:57 -04:00
parent de6129cd32
commit 4ec0d9f47b
1 changed files with 8 additions and 1 deletions

9
Jenkinsfile vendored
View File

@ -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',