summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2017-11-13 22:40:43 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-13 22:40:44 +0000
commit9f7a3ac83c62035d0b8f1e0adc27296db8a3e31c (patch)
treed4d1772e6f370d75605ef5c39b72aa89066ab79b
parent3dda8300a72a04c5630939d5ae16ac4fc5d2d6ec (diff)
parentedb87b1eff536892aac65e7c6cf1c19e69791338 (diff)
Merge "fix the bug of patch verify"
-rw-r--r--jjb/global/releng-macros.yml7
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