Merge "jjb: xci: Do not wipe clean VM on failures"
authorMarkos Chandras <mchandras@suse.de>
Wed, 19 Sep 2018 13:07:31 +0000 (13:07 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Wed, 19 Sep 2018 13:07:31 +0000 (13:07 +0000)
1  2 
jjb/xci/xci-verify-jobs.yaml

        - string:
            name: CI_LOOP
            default: 'verify'
 +      - string:
 +          name: FUNCTEST_VERSION
 +          default: 'hunter'
        - string:
            name: FUNCTEST_MODE
            default: 'tier'
            description: 'Git URL to use on this Jenkins Slave'
  
      builders:
+       - 'xci-verify-clean-vm-macro'
        - 'xci-verify-set-scenario-macro'
        - inject:
            properties-file: "/tmp/$GERRIT_CHANGE_NUMBER/$DISTRO/scenario.properties"
                  GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
                  GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
                  CI_LOOP=$CI_LOOP
 +                FUNCTEST_VERSION=$FUNCTEST_VERSION
                  FUNCTEST_MODE=$FUNCTEST_MODE
                  FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
                node-parameters: true
                  GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
                  GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
                  CI_LOOP=$CI_LOOP
 +                FUNCTEST_VERSION=$FUNCTEST_VERSION
                  FUNCTEST_MODE=$FUNCTEST_MODE
                  FUNCTEST_SUITE_NAME=$FUNCTEST_SUITE_NAME
                node-parameters: true
              - role: BOTH
                build-on:
                  - ABORTED
-                 - FAILURE
                  - NOT_BUILT
                  - SUCCESS
                  - UNSTABLE
        - string:
            name: CI_LOOP
            default: 'verify'
 +      - string:
 +          name: FUNCTEST_VERSION
 +          default: 'hunter'
        - string:
            name: FUNCTEST_MODE
            default: 'tier'
  # -------------------------------
  # builder macros
  # -------------------------------
+ - builder:
+     name: 'xci-verify-clean-vm-macro'
+     builders:
+       - shell:
+           !include-raw: ./xci-cleanup.sh
  - builder:
      name: 'xci-verify-set-scenario-macro'
      builders: