3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-12-24 23:30:26 +01:00
Dieser Commit ist enthalten in:
Andrew Steinborn 2018-10-15 21:40:34 -04:00
Ursprung 51473155c0
Commit 1d8b11e47b

15
Jenkinsfile vendored
Datei anzeigen

@ -2,24 +2,15 @@ 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'
} }
} }
steps {
if (GIT_BRANCH == "master") { sh './gradlew build --no-daemon'
steps { archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
sh './gradlew build --no-daemon'
}
} else {
steps {
sh './gradlew build --no-daemon'
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
}
} }
} }
stage('Deploy') { stage('Deploy') {