From eea2109d669ce18af5d12a295037bf280e44fd45 Mon Sep 17 00:00:00 2001 From: Nana Janashia Date: Sat, 7 Nov 2020 17:43:18 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fca3013..44b38f4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,28 +9,21 @@ pipeline { stage('test') { steps { script { - echo "Testing the application..." - // echo "Executing pipeline for branch $BRANCH_NAME" buildJar() } } } stage('build') { - when { - expression { - BRANCH_NAME == 'master' - } - } steps { script { - echo "Building the application..." + buildDockerImage 'nanajanashia/demo-app:jma-2.0' } } } stage('deploy') { when { expression { - BRANCH_NAME == 'master' + BRANCH_NAME == 'master' } } steps {