Merge "Set Functest MultiJob as arch independent"
authorJose Lausuch <jalausuch@suse.com>
Tue, 14 Nov 2017 08:44:27 +0000 (08:44 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Tue, 14 Nov 2017 08:44:27 +0000 (08:44 +0000)
jjb/global/releng-macros.yml

index d796326..0876694 100644 (file)
           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