Last active
November 27, 2020 00:05
-
-
Save chrisj-au/cfebd47ec7d47c3cb5038a6bcb1ed48f to your computer and use it in GitHub Desktop.
pre-load jenkins params for first build. Used where pipelines are created via code.
This file contains 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
// Abort Build 1 | |
if (env.BUILD_NUMBER.equals("1")) { | |
currentBuild.displayName = 'Parameter loading' | |
addBuildDescription('Please restart pipeline') | |
currentBuild.result = 'ABORTED' | |
error('Stopping initial manually triggered build as we only want to get the parameters') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment