From 7d7cdaffdf9583e07ca9ee5377627bffa05d35e2 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Thu, 1 Mar 2018 13:08:55 +0100 Subject: [PATCH] - --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index ced081d..f55c6e4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,6 +3,14 @@ node { stage('Clone') { // for display purposes // Get some code from a GitHub repository echo env.BRANCH_NAME + script { + if (env.BRANCH_NAME == 'master') { + git url: 'https://github.com/BrokenFire/BrokenDiscordBot.git', branch: 'master' + } else { + git url: 'https://github.com/BrokenFire/BrokenDiscordBot.git', branch: 'devel' + } + } + git url: 'https://github.com/BrokenFire/BrokenDiscordBot.git', branch: 'env.BRANCH_NAME' }