This commit is contained in:
Sebastien 2018-03-01 13:04:08 +01:00
parent ad843f4245
commit c47dbd457c

11
Jenkinsfile vendored
View File

@ -2,7 +2,7 @@ node {
def app def app
stage('Clone') { // for display purposes stage('Clone') { // for display purposes
// Get some code from a GitHub repository // Get some code from a GitHub repository
git url: 'https://github.com/BrokenFire/BrokenDiscordBot.git' git url: 'https://github.com/BrokenFire/BrokenDiscordBot.git', branch: '${env.BRANCH}'
} }
stage('Gradle Buil'){ stage('Gradle Buil'){
build job: 'Bot Discord Gradle', wait: true build job: 'Bot Discord Gradle', wait: true
@ -18,7 +18,14 @@ node {
* First, the incremental build number from Jenkins * First, the incremental build number from Jenkins
* Second, the 'latest' tag. * Second, the 'latest' tag.
* Pushing multiple tags is cheap, as all the layers are reused. */ * Pushing multiple tags is cheap, as all the layers are reused. */
app.push() script {
if (${env.BRANCH} == 'master') {
app.push()
} else {
app.push("devel")
}
}
} }
stage('Cleaning'){ stage('Cleaning'){