This commit is contained in:
Sebastien 2018-03-01 13:08:55 +01:00
parent 9ec50b8fe0
commit 7d7cdaffdf

8
Jenkinsfile vendored
View File

@ -3,6 +3,14 @@ node {
stage('Clone') { // for display purposes stage('Clone') { // for display purposes
// Get some code from a GitHub repository // Get some code from a GitHub repository
echo env.BRANCH_NAME 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' git url: 'https://github.com/BrokenFire/BrokenDiscordBot.git', branch: 'env.BRANCH_NAME'
} }