From 27183530cc6362de90117ed07aafd5501818d593 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 1 Feb 2023 11:17:55 +0000 Subject: [PATCH] environment test --- Jenkinsfile | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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" } } + } }