- job: name: qa-manual-test-definitions-sanity-check project-type: freestyle defaults: global logrotate: daysToKeep: 30 numToKeep: 30 properties: - authorization: anonymous: - job-read - job-extended-read disabled: true node: build display-name: 'QA manual test definitions sanity check' triggers: - gerrit: server-name: 'review.linaro.org' override-votes: true gerrit-build-successful-verified-value: 1 gerrit-build-failed-verified-value: -1 gerrit-build-successful-codereview-value: 1 gerrit-build-failed-codereview-value: -1 readable-message: true successful-message: 'Sanity check OK' failure-message: '[OUTPUT]:' failure-message-file: 'build-error.txt' trigger-for-unreviewed-patches: true projects: - project-compare-type: 'ANT' project-pattern: 'qa/manual-test-definitions' branches: - branch-compare-type: 'ANT' branch-pattern: 'master' wrappers: - timestamps builders: - shell: | #!/bin/bash echo "" echo "########################################################################" echo " Gerrit Environment" env |grep GERRIT echo "########################################################################" rm -rf ${WORKSPACE}/* echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt git clone -b ${GERRIT_BRANCH} --depth 1 https://git.linaro.org/${GERRIT_PROJECT} cd * git fetch https://review.linaro.org/${GERRIT_PROJECT} ${GERRIT_REFSPEC} git checkout -q FETCH_HEAD wget -q https://git.linaro.org/qa/test-definitions-ci.git/blob_plain/HEAD:/test-definitions-ci.py -O test-definitions-ci.py python test-definitions-ci.py E501 - build-name-setter: name: 'version.txt' file: true