Ensure that only ASCII characters make it into the jobs JIRA:OCTO-105
[releng.git] / jjb / verify-releng
1 #!/bin/bash
2
3 source /opt/virtualenv/jenkins-job-builder/bin/activate
4 jenkins-jobs test jjb/
5
6
7 #test for non-ascii characters, these can pass the test and end up breaking things in production
8 for x in $(find . -name *\.yml); do
9
10   if LC_ALL=C grep -q '[^[:print:][:space:]]' "$x"; then
11     echo "file "$x" contains non-ascii characters"
12     exit 1
13   fi
14
15 done
16
17 echo "all .yml files are ASCII only"