X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb-compare-xml.sh;h=98ad4194fcf095e1a273d0a9b300c15234971e8d;hb=6af1c0c3eda77ae8113ba6760ad5a86313f43da8;hp=ee65d3a630bf249ecf2db0e410b1f0e6f7b45242;hpb=42620f3d20e8b6f6f5f73e152ceb2ab750e6446d;p=releng%2Fglobal-jjb.git diff --git a/jjb-compare-xml.sh b/jjb-compare-xml.sh index ee65d3a6..98ad4194 100755 --- a/jjb-compare-xml.sh +++ b/jjb-compare-xml.sh @@ -25,7 +25,8 @@ gittmp="$(mktemp -d)" git worktree add --detach "$gittmp" origin/master pushd "$gittmp" || exit echo "Generating expected XML." -jenkins-jobs test --recursive -o "$expected_xml_dir" "$gittmp":.jjb-test > /dev/null 2>&1 +jenkins-jobs test --recursive -o "$expected_xml_dir" \ + "$gittmp":.jjb-test > /dev/null 2>&1 popd || exit rm -r "$gittmp" @@ -56,6 +57,7 @@ echo "No double curly braces found." rm -rf "$test_dir" "$expected_xml_dir" if $fail; then - echo "WARN: Differences detected. Check above for jobs that have been changed." + echo "WARN: Differences detected." \ + "Check above for jobs that have been changed." exit 0 fi