diff options
author | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2016-07-20 16:48:59 -0700 |
---|---|---|
committer | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2016-07-20 17:23:57 -0700 |
commit | a1d82bbf246837c4ff83ca95246157aacf465c0a (patch) | |
tree | b9279cbaee7ec6fa1a5b1eea28cafd164d3219b9 /jjb/releng/verify-releng.sh | |
parent | c9ea19c97740b1f082b58ac3f4937d3bc5284dec (diff) |
Move Releng Jobs under 'releng' folder
This should help clarify what jobs belong to releng, and that the yaml
file is unaffiliated with 'releng-defaults' and 'releng-macros'.
- Step [1/2] in publishing jobs to the Jenkins sandbox
- Explicitly passes the '-r' to jenkins-jobs so that other understand
releng recursively tests jobs. This option is implied by the
jenkins-job-builder configuration on the server.
JIRA: RELENG-91
Change-Id: Ic4bad170b3d311376a2d081089ac538b53595728
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'jjb/releng/verify-releng.sh')
-rwxr-xr-x | jjb/releng/verify-releng.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/jjb/releng/verify-releng.sh b/jjb/releng/verify-releng.sh new file mode 100755 index 000000000..5c2dbff7a --- /dev/null +++ b/jjb/releng/verify-releng.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2016 Linux Foundation and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +#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 + +source /opt/virtualenv/jenkins-job-builder/bin/activate +jenkins-jobs test -o job_output -r jjb/ |