Updated Readme

This commit is contained in:
Daniel Weissmall 2023-12-04 15:42:38 +03:00
parent 0e28922491
commit 53c96e2a9d

View File

@ -15,3 +15,19 @@ After all you will have in your pipeline all functions that `helpers.groovy` pro
- stageWithChecks - stageWithChecks
- setSuccessCheck - setSuccessCheck
- withGiteaCreds - withGiteaCreds
- withDockerCreds
### Example:
```groovy
helpersPath = "/tmp/helpers.groovy"
sh "curl -L http://10.244.188.80:30210/weissmall/jenkins-tools/raw/branch/master/helpers.groovy -o $helpersPath"
helpers = load helpersPath
...
helpers.stageWithChecks('tests') {
...
}
helpers.withDockerCreds("Creds", env.DOCKER_REGISTRY_HOST) {
...
}
```