mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-03-31 16:30:30 +08:00
Oh well...
This commit is contained in:
parent
51473155c0
commit
1d8b11e47b
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -2,24 +2,15 @@ pipeline {
|
||||
agent none
|
||||
stages {
|
||||
stage('Build') {
|
||||
GIT_BRANCH = sh(returnStdout: true, script: 'git rev-parse --abbrev-ref HEAD').trim()
|
||||
|
||||
agent {
|
||||
docker {
|
||||
image 'velocitypowered/openjdk8-plus-git:slim'
|
||||
args '-v gradle-cache:/root/.gradle:rw'
|
||||
}
|
||||
}
|
||||
|
||||
if (GIT_BRANCH == "master") {
|
||||
steps {
|
||||
sh './gradlew build --no-daemon'
|
||||
}
|
||||
} else {
|
||||
steps {
|
||||
sh './gradlew build --no-daemon'
|
||||
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
||||
}
|
||||
steps {
|
||||
sh './gradlew build --no-daemon'
|
||||
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user