summaryrefslogtreecommitdiffstats
path: root/jjb/verify-releng
blob: 6e980e79b143b1828ee2a9022e1582b9b36317e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

source /opt/virtualenv/jenkins-job-builder/bin/activate
jenkins-jobs test jjb/


#test for non-ascii characters, these can pass the test and end up breaking things in production
for x in $(find . -name *\.yml); do

  if LC_ALL=C grep -q '[^[:print:][:space:]]' "$x"; then
    echo "file "$x" contains non-ascii characters"
    exit 1
  fi

done

echo "all .yml files are ASCII only"