environment test

This commit is contained in:
crusader 2023-02-01 11:17:55 +00:00
parent c9b1816594
commit 27183530cc

22
Jenkinsfile vendored
View File

@ -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"
}
}
}
}