diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2019-05-17 15:43:18 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2019-05-24 08:08:16 +0000 |
commit | 07853ccad90f5dacae10890f70b6c3740e6d8e5f (patch) | |
tree | 4879603deba9c39ec7fd79e65629814dda92517e /tcwg-backport.yaml | |
parent | ff3130ae4edc0c3750d09c048d2af8555cac7f24 (diff) |
tcwg-backport: Do not run validation if the commit message contains the magic word DO_NOT_RUN_VALIDATION
To avoid saturating builders with WIP patches that do not need
validation.
Change-Id: I928a7e73452e853301c3739176092afdca1e68b4
Diffstat (limited to 'tcwg-backport.yaml')
-rw-r--r-- | tcwg-backport.yaml | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/tcwg-backport.yaml b/tcwg-backport.yaml index 48f95407..12ae4447 100644 --- a/tcwg-backport.yaml +++ b/tcwg-backport.yaml @@ -123,6 +123,11 @@ # For git_rev_parse . ./jenkins-scripts/jenkins-helpers.sh + commit_msg=$(git -C gcc log --pretty=%b -n1 $GERRIT_PATCHSET_REVISION | grep DO_NOT_RUN_VALIDATION) + if [ "x$commit_msg" = "xDO_NOT_RUN_VALIDATION" ]; then + exit 0 + fi + abe_rev=$(git_rev_parse abe $abe_branch) gcc_patch_rev=$(git_rev_parse gcc $GERRIT_PATCHSET_REVISION) if [ x"$gcc_orig" = x"gcc_patch_prev" ]; then @@ -181,13 +186,21 @@ log_server=$log_server dryrun=$dryrun EOF - - trigger-builds: - - project: tcwg-buildfarm - parameter-factories: - - factory: filebuild - file-pattern: gcc_*_parameters - block: true - - trigger-builds: - - project: tcwg-compare-results - property-file: compare_results_parameters - block: true + - conditional-step: + condition-kind: file-exists + condition-filename: gcc_orig_parameters + steps: + - trigger-builds: + - project: tcwg-buildfarm + parameter-factories: + - factory: filebuild + file-pattern: gcc_*_parameters + block: true + - conditional-step: + condition-kind: file-exists + condition-filename: gcc_orig_parameters + steps: + - trigger-builds: + - project: tcwg-compare-results + property-file: compare_results_parameters + block: true |