From 92f01461974e23c4900c453ba84355beb51b4de0 Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Thu, 1 Sep 2022 16:39:47 -0700 Subject: [PATCH] Try more things --- Jenkinsfile | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ffc0739..8f06c18 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,10 @@ #!/usr/bin/env groovy POD_LABEL = "jenkins-builder-${UUID.randomUUID()}" -REGISTRY = 'docker.thejimnicholson.com/jenkins' +REGISTRY = 'registry.thejimnicholson.com/jenkins' podTemplate( - name: POD_LABEL, + label: POD_LABEL, namespace: 'jenkins', - podRetention(always), containers: [ containerTemplate( name: 'kaniko', @@ -17,16 +16,14 @@ podTemplate( volumes: [ secretVolume(mountPath: '/kaniko/.docker/config.json', secretName: 'regcred') ], - workspaceVolume: dynamicPVC() -) { - - node(POD_LABEL) { - stage('Checkout') { - checkout scm - } + workspaceVolume: dynamicPVC(), + { + node(POD_LABEL) { + stage('Checkout') { + checkout scm + } } - -} +) // { // node(POD_LABEL) {