Try more things
Some checks failed
Homelab/jenkins-container/pipeline/head There was a failure building this commit
Some checks failed
Homelab/jenkins-container/pipeline/head There was a failure building this commit
This commit is contained in:
parent
12385e38d8
commit
92f0146197
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -1,11 +1,10 @@
|
|||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
POD_LABEL = "jenkins-builder-${UUID.randomUUID()}"
|
POD_LABEL = "jenkins-builder-${UUID.randomUUID()}"
|
||||||
REGISTRY = 'docker.thejimnicholson.com/jenkins'
|
REGISTRY = 'registry.thejimnicholson.com/jenkins'
|
||||||
|
|
||||||
podTemplate(
|
podTemplate(
|
||||||
name: POD_LABEL,
|
label: POD_LABEL,
|
||||||
namespace: 'jenkins',
|
namespace: 'jenkins',
|
||||||
podRetention(always),
|
|
||||||
containers: [
|
containers: [
|
||||||
containerTemplate(
|
containerTemplate(
|
||||||
name: 'kaniko',
|
name: 'kaniko',
|
||||||
@ -17,16 +16,14 @@ podTemplate(
|
|||||||
volumes: [
|
volumes: [
|
||||||
secretVolume(mountPath: '/kaniko/.docker/config.json', secretName: 'regcred')
|
secretVolume(mountPath: '/kaniko/.docker/config.json', secretName: 'regcred')
|
||||||
],
|
],
|
||||||
workspaceVolume: dynamicPVC()
|
workspaceVolume: dynamicPVC(),
|
||||||
) {
|
{
|
||||||
|
|
||||||
node(POD_LABEL) {
|
node(POD_LABEL) {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
checkout scm
|
checkout scm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
)
|
||||||
}
|
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// node(POD_LABEL) {
|
// node(POD_LABEL) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user