Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-25 15:50:19 +01:00
Oh well...
Dieser Commit ist enthalten in:
Ursprung
51473155c0
Commit
1d8b11e47b
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -2,26 +2,17 @@ pipeline {
|
|||||||
agent none
|
agent none
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
GIT_BRANCH = sh(returnStdout: true, script: 'git rev-parse --abbrev-ref HEAD').trim()
|
|
||||||
|
|
||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'velocitypowered/openjdk8-plus-git:slim'
|
image 'velocitypowered/openjdk8-plus-git:slim'
|
||||||
args '-v gradle-cache:/root/.gradle:rw'
|
args '-v gradle-cache:/root/.gradle:rw'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GIT_BRANCH == "master") {
|
|
||||||
steps {
|
|
||||||
sh './gradlew build --no-daemon'
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
steps {
|
steps {
|
||||||
sh './gradlew build --no-daemon'
|
sh './gradlew build --no-daemon'
|
||||||
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
when {
|
when {
|
||||||
expression {
|
expression {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren