Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
Deploy separate agents per stage
Dieser Commit ist enthalten in:
Ursprung
284f90183f
Commit
df06d85d62
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
@ -1,12 +1,13 @@
|
||||
pipeline {
|
||||
agent {
|
||||
docker {
|
||||
image 'velocitypowered/openjdk8-plus-git:slim'
|
||||
args '-v gradle-cache:/root/.gradle:rw -v maven-repo:/maven-repo:rw -v javadoc:/javadoc'
|
||||
}
|
||||
}
|
||||
agent none
|
||||
stages {
|
||||
stage('Build') {
|
||||
agent {
|
||||
docker {
|
||||
image 'velocitypowered/openjdk8-plus-git:slim'
|
||||
args '-v gradle-cache:/root/.gradle:rw'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh './gradlew build'
|
||||
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
||||
@ -19,6 +20,12 @@ pipeline {
|
||||
return GIT_BRANCH == 'master'
|
||||
}
|
||||
}
|
||||
agent {
|
||||
docker {
|
||||
image 'velocitypowered/openjdk8-plus-git:slim'
|
||||
args '-v maven-repo:/maven-repo:rw'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'export MAVEN_DEPLOYMENT=true; ./gradlew publish'
|
||||
}
|
||||
@ -30,6 +37,12 @@ pipeline {
|
||||
return GIT_BRANCH == 'master'
|
||||
}
|
||||
}
|
||||
agent {
|
||||
docker {
|
||||
image 'velocitypowered/openjdk8-plus-git:slim'
|
||||
args '-v javadoc:/javadoc:rw'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'rsync -av --delete ./api/build/docs/javadoc/ /javadoc'
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren