542 B
542 B
External Jenkins pipeline helpers
Usage:
Inside Jenkins pipeline script run two following commands:
// This shell command will download groovy helpers file
sh "curl -L http://[git-url]/[organization]/[repo-name]/raw/branch/master/helpers.groovy -o helpers.groovy"
// This will load script to the pipeline
load "helpers.groovy"
This can be used in scripting pipeline syntax only!
After all you will have in your pipeline all functions that helpers.groovy
provides:
- stageWithChecks
- setSuccessCheck
- withGiteaCreds