Created
August 13, 2018 23:01
-
-
Save dragoonis/bca127e7df6368b77fc7a9ffcf07dcf6 to your computer and use it in GitHub Desktop.
Revisions
-
dragoonis created this gist
Aug 13, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # 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