This change moves ONAP pipelines to City EST Tenant.
Apart from that, it introduces a new parameter, DELETE_STACK, so
the users of Jenkins can opt to keep the stack upon completion of
the job for troubleshooting purposes. Default is to delete the
stack.
No matter what, the stack will be deleted and recreated when the
same job gets triggered manually or on timer so the users need
to finish their jobs on the stack on time or they will be deleted.
Change-Id: I483c2b2723fae9a606342a38749f820dd9c7518d
name: POD_NAME
default: '{pod-name}'
description: 'Development purposes only! Set to none for disabling test results DB reporting.'
+ - choice:
+ name: DELETE_STACK
+ choices:
+ - 'yes'
+ - 'no'
+ default: 'yes'
+ description: 'Development purposes only! Whether delete the stack or not. Default is yes. Setting this to no will increase the cost!'
properties:
- logrotate
wrappers:
- credentials-binding:
- file:
- credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
+ credential-id: est-jenkins-openrcfile-city-karlskrona-onap
variable: OPENRC_FILE
- mask-passwords
- build-timeout:
wrappers:
- credentials-binding:
- file:
- credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
+ credential-id: est-jenkins-openrcfile-city-karlskrona-onap
variable: OPENRC_FILE
- mask-passwords
- build-timeout:
wrappers:
- credentials-binding:
- file:
- credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
+ credential-id: est-jenkins-openrcfile-city-karlskrona-onap
variable: OPENRC_FILE
- mask-passwords
- build-timeout:
set -o errexit
set -o nounset
+if [[ "$DELETE_STACK" != "yes" ]]; then
+ echo "-------------------------------------------------------------------------"
+ echo "Info: Stack will not be deleted upon the completion of the job!"
+ echo "-------------------------------------------------------------------------"
+ exit 0
+fi
+
echo
echo
echo "-------------------------------------------------------------------------"