5990161067046f2911e8cf8968d46cec52eef056
[releng.git] / jjb-sandbox / releng / verify-sandbox-jobs.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); 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 jenkins-jobs test -r jjb/releng-defaults.yaml:jjb/releng-macros.yaml:jjb/opnfv/installer-params.yml:jjb/opnfv/slave-params.yml:jjb-sandbox \
21     -o job_output