Move ONAP pipelines to EST Tenant and enable keeping the stack 56/2056/1
authorFatih Degirmenci <fdegir@gmail.com>
Mon, 26 Aug 2019 13:30:14 +0000 (13:30 +0000)
committerFatih Degirmenci <fdegir@gmail.com>
Mon, 26 Aug 2019 13:30:30 +0000 (13:30 +0000)
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

jjb/cloud-infra/cloud-infra-periodic-onap.yaml
jjb/cloud-infra/delete-heat-stack.sh

index bdb63dfa4f9abbc08b296407370d67d2fa01b765..488dc81719fc8da33585f6b1c55dc580d9dffe6f 100644 (file)
           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:
index 7c6ecdb4bab9dbfdfd202beb3bd8b37b223df984..aa3478d4ebd39e94c2d2b7adc3a313208da096db 100644 (file)
 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 "-------------------------------------------------------------------------"