From 1d8b11e47b6a01d9aa4fe0a326675a02ece559dc Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Mon, 15 Oct 2018 21:40:34 -0400 Subject: [PATCH] Oh well... --- Jenkinsfile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 498e2d30d..19ae32e52 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,24 +2,15 @@ pipeline { agent none stages { stage('Build') { - GIT_BRANCH = sh(returnStdout: true, script: 'git rev-parse --abbrev-ref HEAD').trim() - agent { docker { image 'velocitypowered/openjdk8-plus-git:slim' args '-v gradle-cache:/root/.gradle:rw' } } - - 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' - } + steps { + sh './gradlew build --no-daemon' + archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar' } } stage('Deploy') {