jenkins-lib

Jenkins shared library
git clone https://git.in0rdr.ch/jenkins-lib.git
Log | Files | Refs | README

commit 7b39adf55b860301f48b94f182f62c6d02b1479d
parent a16c190311239d185f0d96cf6d1abc291ca0304b
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Wed,  3 Jul 2024 17:26:08 +0200

feat(updatectli): add diff class

Diffstat:
Asrc/UpdatecliDiff.groovy | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/UpdatecliDiff.groovy b/src/UpdatecliDiff.groovy @@ -0,0 +1,18 @@ +// A class to describe the updatecli diff stage +// - https://www.updatecli.io/docs/automate/jenkins +// - https://www.updatecli.io/docs/guides/npm +class UpdatecliDiff { + private final Script script + + UpdatecliDiff(Script script) { + this.script = script + } + + void execute() { + script.stage(stageName) { + docker.image('ghcr.io/updatecli/updatecli:latest') { + sh 'updatecli diff' + } + } + } +}