diff --git a/Jenkinsfile b/Jenkinsfile index 3e76205d6..32ed2b647 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,15 @@ -node { - stage('scm'){ - git 'https://github.com/seshi7/spring-petclinic.git' - } -} +pipeline { + agent {label 'MASTER'} + stages { + stage('scm'){ + steps { + git 'https://github.com/seshi7/spring-petclinic.git' + } + } + stage ('Package'){ + steps { + sh 'mvn package' + } + } + } +}