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) {