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