From: Vladimir Khlyunev Date: Wed, 27 Feb 2019 12:38:19 +0000 (+0400) Subject: Archive stack data as build artifact X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=fbfe86b3033ad2d84352276160915ef5dca5aa95;p=tools%2Fsustaining.git Archive stack data as build artifact At current moment it stores stack name and floating ip Change-Id: Ic06203d28196b75d13943f9dd5614274101c391d --- diff --git a/maintenance-ci/common/jobs/deploy_stack.yaml b/maintenance-ci/common/jobs/deploy-stack.yaml similarity index 73% rename from maintenance-ci/common/jobs/deploy_stack.yaml rename to maintenance-ci/common/jobs/deploy-stack.yaml index 57f57f9..c09a58b 100644 --- a/maintenance-ci/common/jobs/deploy_stack.yaml +++ b/maintenance-ci/common/jobs/deploy-stack.yaml @@ -1,7 +1,7 @@ - job: name: 'deploy-heat-stack' description: | - Create given heat stack on internal cloud in maintenance-team tenant + Create given heat stack on internal cloud in maintenance-team tenant concurrent: false node: 'jenkins-master' @@ -26,10 +26,10 @@ default: '' scm: - - git: - url: 'https://review.fuel-infra.org/tools/sustaining/' - branches: - - origin/master + - git: + url: 'https://review.fuel-infra.org/tools/sustaining/' + branches: + - origin/master wrappers: - timestamps @@ -41,3 +41,8 @@ builders: - shell: !include-raw: common/scripts/deploy_heat_stack.sh + + publishers: + - archive: + artifacts: 'stack_data.sh' + only-if-success: true diff --git a/maintenance-ci/common/scripts/deploy_heat_stack.sh b/maintenance-ci/common/scripts/deploy_heat_stack.sh index 80054b5..7a4ea07 100755 --- a/maintenance-ci/common/scripts/deploy_heat_stack.sh +++ b/maintenance-ci/common/scripts/deploy_heat_stack.sh @@ -37,4 +37,9 @@ set -x source "${OPENRC_FILE?}" echo "openstack stack create --wait -t ${HEAT_STACK_YAML} ${parameter_string} ${STACK_NAME}" | bash - openstack stack output show "${STACK_NAME}" --all -deactivate \ No newline at end of file + cat >stack_data.sh <