From 51473155c0e97b58568e583d66fe268b5f4d5437 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Mon, 15 Oct 2018 21:38:24 -0400 Subject: [PATCH] Fix Jenkinsfile --- Jenkinsfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7db984aed..498e2d30d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,10 +10,15 @@ pipeline { args '-v gradle-cache:/root/.gradle:rw' } } - steps { - sh './gradlew build --no-daemon' - if (GIT_BRANCH == "master") { - archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar' + + if (GIT_BRANCH == "master") { + steps { + sh './gradlew build --no-daemon' + } + } else { + steps { + sh './gradlew build --no-daemon' + archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar' } } }