Add RELEASE-STAGING settings.
This commit is contained in:
parent
de6129cd32
commit
4ec0d9f47b
|
@ -22,6 +22,13 @@ if (params.Type == 'RELEASE-DRY-RUN') {
|
||||||
maven_local_repo_path = "${agent_root_folder}/local-releases"
|
maven_local_repo_path = "${agent_root_folder}/local-releases"
|
||||||
maven_settings_file = "${agent_root_folder}/.m2/jenkins-releases-dry-run-settings.xml"
|
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') {
|
if (params.Type == 'RELEASE') {
|
||||||
echo "Configure Maven for RELEASE artifacts"
|
echo "Configure Maven for RELEASE artifacts"
|
||||||
options = ''
|
options = ''
|
||||||
|
@ -50,7 +57,7 @@ pipeline {
|
||||||
// see https://jenkins.io/doc/book/pipeline/syntax/#parameters
|
// see https://jenkins.io/doc/book/pipeline/syntax/#parameters
|
||||||
parameters {
|
parameters {
|
||||||
choice(name: 'Type',
|
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')
|
description: 'The type of artifacts the build is expected to generate')
|
||||||
|
|
||||||
string(name: 'gCube_release_number',
|
string(name: 'gCube_release_number',
|
||||||
|
|
Loading…
Reference in New Issue