cicd-java-spring-boot/Jenkinsfile
2023-02-01 09:25:05 +00:00

23 lines
538 B
Groovy

podTemplate(containers: [
containerTemplate(
name: 'gradle',
image: 'gradle:7.6.0-jdk11',
command: 'sleep',
args: '30d'
)
]) {
node(POD_LABEL) {
stage('Get a Gradle project') {
git 'https://github.com/spring-projects/spring-petclinic.git'
container('gradle') {
stage('Build a Gradle project') {
sh '''
echo "gradle build"
'''
}
}
}
}
}