Only Allow ASCII Characters in JJB Scripts 43/43043/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Mon, 25 Sep 2017 19:47:16 +0000 (12:47 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Mon, 25 Sep 2017 19:47:16 +0000 (12:47 -0700)
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 <tbramwell@linuxfoundation.org>
jjb/releng/verify-releng.sh

index 682a8be..a6eaa0f 100755 (executable)
@@ -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"