summaryrefslogtreecommitdiffstats
path: root/jjb/verify-releng
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/verify-releng')
-rwxr-xr-xjjb/verify-releng17
1 files changed, 17 insertions, 0 deletions
diff --git a/jjb/verify-releng b/jjb/verify-releng
new file mode 100755
index 000000000..6e980e79b
--- /dev/null
+++ b/jjb/verify-releng
@@ -0,0 +1,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"