diff --git a/README.md b/README.md index 4349568..9f823e8 100644 --- a/README.md +++ b/README.md @@ -14,4 +14,20 @@ load "helpers.groovy" After all you will have in your pipeline all functions that `helpers.groovy` provides: - stageWithChecks - setSuccessCheck -- withGiteaCreds \ No newline at end of file +- 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) { + ... +} +``` \ No newline at end of file