Rearrange Releng Job and Parameter Files
[releng.git] / jjb / releng / verify-releng.sh
1 #!/bin/bash
2 # SPDX-license-identifier: Apache-2.0
3 ##############################################################################
4 # Copyright (c) 2016 Linux Foundation and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10 #test for non-ascii characters, these can pass the test and end up breaking things in production
11 for x in $(find . -name *\.yml -or -name *\.yaml); do
12
13   if LC_ALL=C grep -q '[^[:print:][:space:]]' "$x"; then
14     echo "file "$x" contains non-ascii characters"
15     exit 1
16   fi
17
18 done
19
20 source /opt/virtualenv/jenkins-job-builder/bin/activate
21 jenkins-jobs test -o job_output -r jjb/