Skip to content

Instantly share code, notes, and snippets.

@dragoonis
Created August 13, 2018 23:01
Show Gist options
  • Save dragoonis/bca127e7df6368b77fc7a9ffcf07dcf6 to your computer and use it in GitHub Desktop.
Save dragoonis/bca127e7df6368b77fc7a9ffcf07dcf6 to your computer and use it in GitHub Desktop.
# Run each thru the linter
shopt -s nullglob
for jenkinsFile in "${SEARCH_FOLDER}"/Jenkinsfile* ; do
echo "Linting ${jenkinsFile}"
if ! java -jar ~/tools/jenkins-cli.jar -i JENKINS_KEY -s JENKINS_URL declarative-linter<"${jenkinsFile}" ; then
OVERALL_RESULT=1
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment