diff --git a/Jenkinsfile b/Jenkinsfile index 81dc795..e3a802f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,16 +1,19 @@ podTemplate(containers: [ containerTemplate( - name: 'jnlp', - image: 'jenkins/inbound-agent:latest' + name: 'gradle', + image: 'gradle:7.6.0-jdk11', + command: 'sleep', + args: '30d' ) ]) { node(POD_LABEL) { - stage('Get a project') { - container('jnlp') { - stage('Shell Execution') { + stage('Get a Gradle project') { + git 'https://github.com/spring-projects/spring-petclinic.git' + container('gradle') { + stage('Build a Gradle project') { sh ''' - echo "Hello! I am executing shell" + echo "gradle build" ''' } }