Jenkins test
This commit is contained in:
parent
7d7cdaffdf
commit
b12383b97a
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@ -1,18 +1,16 @@
|
|||||||
node {
|
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
|
||||||
echo env.BRANCH_NAME
|
echo env.BRANCH_NAME
|
||||||
script {
|
script {
|
||||||
if (env.BRANCH_NAME == 'master') {
|
if (env.BRANCH_NAME == 'master') {
|
||||||
git url: 'https://github.com/BrokenFire/BrokenDiscordBot.git', branch: 'master'
|
git url: 'https://github.com/BrokenFire/BrokenDiscordBot.git', branch: 'master'
|
||||||
} else {
|
} else {
|
||||||
git url: 'https://github.com/BrokenFire/BrokenDiscordBot.git', branch: 'devel'
|
git url: 'https://github.com/BrokenFire/BrokenDiscordBot.git', branch: 'devel'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
git url: 'https://github.com/BrokenFire/BrokenDiscordBot.git', branch: 'env.BRANCH_NAME'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
stage('Gradle Buil'){
|
stage('Gradle Buil'){
|
||||||
build job: 'Bot Discord Gradle', wait: true
|
build job: 'Bot Discord Gradle', wait: true
|
||||||
@ -29,7 +27,7 @@ node {
|
|||||||
* 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. */
|
||||||
script {
|
script {
|
||||||
if (${env.BRANCH} == 'master') {
|
if (env.BRANCH_NAME == 'master') {
|
||||||
app.push()
|
app.push()
|
||||||
} else {
|
} else {
|
||||||
app.push("devel")
|
app.push("devel")
|
||||||
|
Loading…
Reference in New Issue
Block a user