]> review.fuel-infra Code Review - tools/sustaining.git/commitdiff
Add desc setter for deploy job 29/41729/1
authorVladimir Khlyunev <vkhlyunev@mirantis.com>
Fri, 14 May 2021 12:47:34 +0000 (16:47 +0400)
committerVladimir Khlyunev <vkhlyunev@mirantis.com>
Fri, 14 May 2021 12:47:34 +0000 (16:47 +0400)
Change-Id: I52b42a8a90f07554bd069f95ead986937ece6f50

maintenance-ci/common/jobs/deploy-stack.yaml
maintenance-ci/common/scripts/deploy_heat_stack.sh

index 27e15a32e02d04338a6275cf984a4471df654990..9f3083d810d2b0c428aa95af58a516b7d24e2001 100644 (file)
@@ -68,3 +68,5 @@
     - archive:
         artifacts: 'stack_data.sh'
         only-if-success: true
+    - description-setter:
+        regex: "description-setter:(.*)\n"
index 0dd73488a0ae958b18daeee361c359735de39bf4..34dd62af588778d5b2c321f9af2a161003d88d70 100755 (executable)
@@ -79,9 +79,11 @@ with open(os.environ.get('TEMPLATE_FILE'), 'w') as f:
 
   openstack stack create --wait -t ${TEMPLATE_FILE} --parameter "${parameter_string}" ${STACK_NAME}
   openstack stack output show "${STACK_NAME}" --all
+  FLOATING_IP=$(heat output-show ${STACK_NAME} floating_ip)
+  echo "description-setter:${STACK_NAME}: ${FLOATING_IP}"
   cat >stack_data.sh <<EOF
 STACK_NAME=${STACK_NAME}
-STACK_FLOATING_IP=$(heat output-show ${STACK_NAME} floating_ip)
+STACK_FLOATING_IP=${FLOATING_IP}
 EOF
 
 deactivate