summaryrefslogtreecommitdiffstats
path: root/jjb/global/releng-macros.yml
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2018-02-02 13:52:48 -0800
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2018-02-02 13:52:48 -0800
commit606a18946b901e57f5910cbeaf28cb8367414941 (patch)
tree251ca7a9415e3289d198503de709cfa3f32d9b6b /jjb/global/releng-macros.yml
parent00b16002d3e31c6d692c78907b3885a7aff778cb (diff)
Set the lint job shell to /bin/bash
The default builder in Jenkins is '/bin/sh -ex'. Because of this lint jobs are failing that we assume won't as everywhere else we've used /bin/bash and explitily set options when needed. Explicitly setting these jobs to use /bin/bash should keep Jenkins from failing builds without reporting the lint results. Change-Id: Ibe6cad979d6dcf30e7991873c9ac446ae3bf3a8b Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'jjb/global/releng-macros.yml')
-rw-r--r--jjb/global/releng-macros.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/jjb/global/releng-macros.yml b/jjb/global/releng-macros.yml
index a5a83e23f..bd9f97d3b 100644
--- a/jjb/global/releng-macros.yml
+++ b/jjb/global/releng-macros.yml
@@ -307,6 +307,7 @@
name: lint-init
builders:
- shell: |
+ #!/bin/bash
# Ensure we start with a clean environment
rm -f bash-violation.log python-violation.log yaml-violation.log violation.log
git --no-pager diff --diff-filter=MCRAT --name-only HEAD^1 > modified_files
@@ -315,6 +316,7 @@
name: lint-report
builders:
- shell: |
+ #!/bin/bash
if [[ -s violation.log ]]; then
echo "Reporting lint result..."
msg="Found syntax error and/or coding style violation(s) in the files modified by your patchset."
@@ -330,6 +332,7 @@
name: lint-bash-code
builders:
- shell: |
+ #!/bin/bash
echo "Checking bash code..."
for f in $(egrep '\.sh$' modified_files)
do
@@ -344,6 +347,7 @@
name: lint-python-code
builders:
- shell: |
+ #!/bin/bash
# Install python package
sudo pip install "flake8==2.6.2"
@@ -361,6 +365,7 @@
name: lint-yaml-code
builders:
- shell: |
+ #!/bin/bash
# sudo Install python packages
sudo pip install "yamllint==1.8.2"