From: Trevor Bramwell Date: Mon, 25 Sep 2017 19:47:16 +0000 (-0700) Subject: Only Allow ASCII Characters in JJB Scripts X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=941759da987a3d24d9eee704c83163c8931359b9;p=releng.git Only Allow ASCII Characters in JJB Scripts Since Jenkins job builder doesn't support unicode yet, any non-ascii character will break the releng-merge-jjb job. Change-Id: Idc50c258c9c00c8d594717364907e701d9fee385 Signed-off-by: Trevor Bramwell --- diff --git a/jjb/releng/verify-releng.sh b/jjb/releng/verify-releng.sh index 682a8beda..a6eaa0f50 100755 --- a/jjb/releng/verify-releng.sh +++ b/jjb/releng/verify-releng.sh @@ -8,7 +8,7 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## #test for non-ascii characters, these can pass the test and end up breaking things in production -for x in $(find . -name *\.yml -or -name *\.yaml); do +for x in $(find . -name *\.yml -or -name *\.yaml -or -name *\.sh); do if LC_ALL=C grep -q '[^[:print:][:space:]]' "$x"; then echo "file "$x" contains non-ascii characters"