summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
Diffstat (limited to 'jjb')
-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