From: Fatih Degirmenci Date: Thu, 22 Aug 2019 20:17:30 +0000 (+0000) Subject: Make delete-stack a postbuild step X-Git-Url: https://gerrit.nordix.org/gitweb?a=commitdiff_plain;h=9ff44dfa77e955e8b99213c62d0cefc195fcaf11;p=infra%2Fcicd.git Make delete-stack a postbuild step Failed builds leave stack behind them unnecessarily so delete-stack is turned into a postbuild step to run always to remove the stack. Change-Id: Iab6aa3730729be28853ccac3b8ac3f1614465902 --- diff --git a/jjb/cloud-infra/cloud-infra-periodic-onap.yaml b/jjb/cloud-infra/cloud-infra-periodic-onap.yaml index f1996122..71209df0 100644 --- a/jjb/cloud-infra/cloud-infra-periodic-onap.yaml +++ b/jjb/cloud-infra/cloud-infra-periodic-onap.yaml @@ -19,20 +19,8 @@ # ============LICENSE_END========================================================= #-------------------------------------------------------------------------------------- -# The jobs declared in this JJB configuration file are used for verifying cloud-infra -# engine from the tip of the master branch periodically to check the stability of it. -# -# These jobs are set to run on slaves with label vpod-deploy-ubuntu1604. -# The slaves have -# - Ubuntu1604 as the base distro -# - nested virtualization -# - internet access -# - passwordless sudo -# - 16 CPUs/32GB RAM/200 GB Disk -# - docker, git vim curl wget zip unzip chrony apt-transport-https ca-certificates curl -# gnupg-agent software-properties-common docker-ce docker-ce-cli containerd.io openjdk-8-jre -# -# The slaves should not have a cloud infra scenario deployed on them. +# The jobs declared in this JJB configuration file are used for deploying and testing +# ONAP scenario onap-nofeature-noha. #-------------------------------------------------------------------------------------- - project: @@ -78,8 +66,6 @@ test-type: oom-healthcheck - promote-onap: build-timeout: 5 - - delete-stack: - build-timeout: 5 onap-healthcheck-phases: - onap-healthcheck-core: @@ -333,29 +319,20 @@ node-parameters: true kill-phase-on: NEVER abort-all-job: false - - multijob: - name: Delete Stack - condition: ALWAYS - projects: - - name: 'delete-stack-periodic-{distro}-{installer-type}-{type}-{onap-branch}' - current-parameters: false - predefined-parameters: | - DISTRO=$DISTRO - DEPLOY_TYPE=$DEPLOY_TYPE - INSTALLER_TYPE=$INSTALLER_TYPE - DEPLOY_SCENARIO=$DEPLOY_SCENARIO - ONAP_VERSION=$ONAP_VERSION - ONAP_FLAVOR=$ONAP_FLAVOR - ENGINE_VERSION=$ENGINE_VERSION - ENGINE_REFSPEC=$ENGINE_REFSPEC - DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION - DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC - XTESTING_REPO_URL=$XTESTING_REPO_URL - ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS - CLEANUP=$CLEANUP - node-parameters: true - kill-phase-on: NEVER - abort-all-job: false + + publishers: + - postbuildscript: + builders: + - role: SLAVE + build-on: + - SUCCESS + - FAILURE + - ABORTED + - NOT_BUILT + - UNSTABLE + build-steps: + - shell: + !include-raw: ./delete-heat-stack.sh - job-template: name: '{onap-other-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}' diff --git a/jjb/cloud-infra/delete-stack.sh b/jjb/cloud-infra/delete-heat-stack.sh similarity index 100% rename from jjb/cloud-infra/delete-stack.sh rename to jjb/cloud-infra/delete-heat-stack.sh diff --git a/jjb/cloud-infra/onap-macros.yaml b/jjb/cloud-infra/onap-macros.yaml index 12795bdf..291d7f59 100644 --- a/jjb/cloud-infra/onap-macros.yaml +++ b/jjb/cloud-infra/onap-macros.yaml @@ -96,10 +96,4 @@ - shell: !include-raw: ./promote-onap.sh -- builder: - name: 'delete-stack-macro' - builders: - - shell: - !include-raw: ./delete-stack.sh - # vim: set ts=2 sw=2 expandtab: