jenkins-tools/README.md

17 lines
542 B
Markdown

# External Jenkins pipeline helpers
## Usage:
Inside Jenkins pipeline script run two following commands:
```groovy
// 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