Source openrc file 21/2021/1
authorFatih Degirmenci <fdegir@gmail.com>
Thu, 22 Aug 2019 21:29:02 +0000 (21:29 +0000)
committerFatih Degirmenci <fdegir@gmail.com>
Thu, 22 Aug 2019 21:29:02 +0000 (21:29 +0000)
Change-Id: Ia033ddc4b85cd2578d658f5aeaa508c61120928c

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

index 7c7a0f7c1b49c990e41f3b120cf3cb4ca024f4dd..d5a720c445b057bdfecdc1ffc62fc32d58de2c75 100644 (file)
     builders:
       - description-setter:
           description: $INSTALLER_TYPE | $DEPLOY_SCENARIO
+      - shell: |
+          #!/bin/bash
+          cp $OPENRC_FILE /tmp/openrc
       - multijob:
           name: Deploy ONAP using OOM
           condition: SUCCESSFUL
index 34ed7ac96bf1ecebbe4aac5ff8f795e9541de4e8..50a6396ed7ccc6ddbc628f7a58efda1662583eda 100644 (file)
@@ -41,7 +41,7 @@ set -u
 pip install openstacksdk python-openstackclient python-heatclient
 echo "Info: Deleting stack $STACK_NAME"
 echo "-------------------------------------------------------------------------"
-source $OPENRC_FILE
+source /tmp/openrc && /bin/rm -f /tmp/openrc
 openstack stack delete $STACK_NAME --wait --yes
 echo "-------------------------------------------------------------------------"
 echo "Info: Stack $STACK_NAME has been deleted!"