From 53c96e2a9d4776b2a8eb1337ffa7565a4f9896fe Mon Sep 17 00:00:00 2001 From: weissmall <dany.small.work@gmail.com> Date: Mon, 4 Dec 2023 15:42:38 +0300 Subject: [PATCH] Updated Readme --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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