From: Vladimir Khlyunev Date: Fri, 14 May 2021 12:47:34 +0000 (+0400) Subject: Add desc setter for deploy job X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F29%2F41729%2F1;p=tools%2Fsustaining.git Add desc setter for deploy job Change-Id: I52b42a8a90f07554bd069f95ead986937ece6f50 --- diff --git a/maintenance-ci/common/jobs/deploy-stack.yaml b/maintenance-ci/common/jobs/deploy-stack.yaml index 27e15a3..9f3083d 100644 --- a/maintenance-ci/common/jobs/deploy-stack.yaml +++ b/maintenance-ci/common/jobs/deploy-stack.yaml @@ -68,3 +68,5 @@ - archive: artifacts: 'stack_data.sh' only-if-success: true + - description-setter: + regex: "description-setter:(.*)\n" diff --git a/maintenance-ci/common/scripts/deploy_heat_stack.sh b/maintenance-ci/common/scripts/deploy_heat_stack.sh index 0dd7348..34dd62a 100755 --- a/maintenance-ci/common/scripts/deploy_heat_stack.sh +++ b/maintenance-ci/common/scripts/deploy_heat_stack.sh @@ -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 <