jenkins-lib

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

commit 5c886d12c62b506f0adf842c50d6dbeeebc1c6c8
parent 99f22abaaf44bb8e963524d1699a77c581745d59
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Wed,  3 Jul 2024 17:04:10 +0200

feat(buildah): remove var file

Only one Declarative Pipeline can be executed in a single build. This is
a bit limiting here, it's more flexible to create actual class files for
the individual build/push steps.

https://www.jenkins.io/doc/book/pipeline/shared-libraries/#defining-declarative-pipelines

Diffstat:
Dvars/buildah.groovy | 31-------------------------------
1 file changed, 0 insertions(+), 31 deletions(-)

diff --git a/vars/buildah.groovy b/vars/buildah.groovy @@ -1,31 +0,0 @@ -def call(String imgContext, - String imgName, - String imgArch = 'arm64/v8', - String imgTag = 'latest', - String imgRegistry = 'host.docker.internal:5000') { - - def shCmd = sprintf( - 'buildah bud --no-cache --arch=%s -t %s/%s:%s %s', - imgArch, imgRegistry, imgName, imgTag, imgContext) - - pipeline { - agent { - label 'nomad' - } - - stages { - stage('build') { - steps { - sh shCmd - } - } - //stage('publish') { - // steps { - // script { - // sh 'buildah push -t ${imgRegistry}/${imgName}:${imgTag}' - // } - // } - //} - } - } -}