diff --git a/Jenkinsfile b/Jenkinsfile index f187254..d54a0f2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,11 +4,17 @@ pipeline { stage('build') { steps { script { - echo "Building the application..." + echo "Building the application..." + echo "Branch $BRANCH_NAME" } } } stage('test') { + when { + expression { + BRANCH_NAME == 'master' + } + } steps { script { echo "Testing the application..."