diff options
author | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2017-11-13 22:40:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-11-13 22:40:44 +0000 |
commit | 9f7a3ac83c62035d0b8f1e0adc27296db8a3e31c (patch) | |
tree | d4d1772e6f370d75605ef5c39b72aa89066ab79b | |
parent | 3dda8300a72a04c5630939d5ae16ac4fc5d2d6ec (diff) | |
parent | edb87b1eff536892aac65e7c6cf1c19e69791338 (diff) |
Merge "fix the bug of patch verify"
-rw-r--r-- | jjb/global/releng-macros.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/jjb/global/releng-macros.yml b/jjb/global/releng-macros.yml index d79632689..08766943c 100644 --- a/jjb/global/releng-macros.yml +++ b/jjb/global/releng-macros.yml @@ -383,7 +383,12 @@ echo "Running yaml code on $PROJECT ..." # Get list of yaml files - YAML_FILES=$(git --no-pager diff --diff-filter=MCRAT --name-only HEAD^1 | egrep "ya?ml$") + YAML_FILES=$(git --no-pager diff --diff-filter=MCRAT --name-only HEAD^1 | egrep "ya?ml$") || true + + #If YAML_FILES is none exit with 0 + if [ -z "$YAML_FILES" ]; then + exit 0 + fi # Ensure we start with a clean environment rm -f yaml-violation.log lint.log |