diff --git a/Jenkinsfile b/Jenkinsfile index 7ba6db570..ad17f25d2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,15 +1,18 @@ pipeline { - agent {label 'MASTER'} - stages { - stage('scm'){ - steps { - git 'https://github.com/seshi7/spring-petclinic.git' - } - } - stage('Package'){ - steps { - sh 'mvn package' - } - } - } + agent {label 'MASTER'} + triggers { + upstream(upstreamProjects: 'dummy', threshold: hudson.model.Result.SUCCESS) + } + stages { + stage('source') { + steps { + git 'https://github.com/seshi7/spring-petclinic.git' + } + } + stage('Package') { + steps { + sh 'mvn package' + } + } + } }