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' }