Created
August 13, 2018 23:01
-
-
Save dragoonis/bca127e7df6368b77fc7a9ffcf07dcf6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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