diff --git a/Jenkinsfile b/Jenkinsfile index c5323ed..2cb678a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,10 +8,29 @@ podTemplate( image: 'gradle:7.6.0-jdk11', command: 'sleep', args: '30d' + ), + containerTemplate( + name: 'docker', + image: 'docker:latest', + command: 'cat', + ttyEnabled: true + ), + containerTemplate( + name: 'kubectl', + image: 'bitnami/kubectl:latest', + command: 'cat', + ttyEnabled: true + ), + containerTemplate( + name: 'helm', + image: 'alpine/helm:latest', + command: 'cat', + ttyEnabled: true ) ], volumes: [ - hostPathVolume(mountPath: '/home/gradle/.gradle', hostPath: '/tmp/jenkins/.gradle') + hostPathVolume(mountPath: '/home/gradle/.gradle', hostPath: '/tmp/jenkins/.gradle'), + hostPathVolume(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock') ] ) { @@ -43,5 +62,6 @@ podTemplate( sh "gradle build" } } + } }