- - config-file-provider:
- files:
- - file-id: 'odl-elastic-cloud'
- target: '${HOME}/.netrc'
- - shell: |
- #!/bin/bash
- #The following script runs any configurable postplan stored in test/csit/postplans.
- if [ -f "${WORKSPACE}/test/csit/postplans/${TESTPLAN}" ]; then
- echo "postplan exists!!!"
- echo "Changing the postplan path..."
- script_name=${WORKSPACE}/test/csit/postplans/${TESTPLAN}
- cat ${script_name} | sed "s:integration:${WORKSPACE}:" > postplan.txt
- cat postplan.txt
- egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' postplan.txt | while read -r line ; do
- echo "Executing ${line}..."
- ${line}
- done
- fi
- rm ${HOME}/.netrc
- script-only-if-succeeded: 'False'
- script-only-if-failed: 'False'
- mark-unstable-if-failed: 'True'
+ - role: BOTH
+ build-on:
+ - ABORTED
+ - FAILURE
+ - NOT_BUILT
+ - SUCCESS
+ - UNSTABLE
+ build-steps:
+ - config-file-provider:
+ files:
+ - file-id: 'odl-elastic-cloud'
+ target: '${HOME}/.netrc'
+ - shell: |
+ #!/bin/bash
+ #The following script runs any configurable postplan stored in test/csit/postplans.
+ if [ -f "${WORKSPACE}/test/csit/postplans/${TESTPLAN}" ]; then
+ echo "postplan exists!!!"
+ echo "Changing the postplan path..."
+ script_name=${WORKSPACE}/test/csit/postplans/${TESTPLAN}
+ cat ${script_name} | sed "s:integration:${WORKSPACE}:" > postplan.txt
+ cat postplan.txt
+ egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' postplan.txt | while read -r line ; do
+ echo "Executing ${line}..."
+ ${line}
+ done
+ fi
+ rm ${HOME}/.netrc
+ mark-unstable-if-failed: true
+
+- publisher:
+ name: integration-csit-collect-logs
+ publishers:
+ - postbuildscript:
+ builders:
+ - role: BOTH
+ build-on:
+ - ABORTED
+ - FAILURE
+ - NOT_BUILT
+ - SUCCESS
+ - UNSTABLE
+ build-steps:
+ - inject:
+ properties-file: 'slave_addresses.txt'
+ - shell: |
+ #!/bin/bash
+ source /tmp/common-functions.sh ${BUNDLEFOLDER}
+ collect_logs
+ mark-unstable-if-failed: true