From 6a553e93a7877cd9ef01a33516567c2699261c14 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Tue, 16 Jan 2018 21:01:51 +0000 Subject: [PATCH] only install when in master branch --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index b3fcc48..666f0f5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,8 +3,19 @@ pipeline { label "jenkins-maven" } + stages { + stage('Validate Environment') { + steps { + container('maven') { + sh 'make build' + } + } + } stage('Update Environment') { + when { + branch 'master' + } steps { container('maven') { sh 'make install'