summaryrefslogtreecommitdiffstats
path: root/jjb/releng/verify-releng.sh
blob: a6eaa0f508fd48437eef0d7fe55d50fd3f6c6ebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 -or -name *\.yaml -or -name *\.sh); 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/