13
0
geforkt von Mirrors/Velocity

Deploy separate agents per stage

Dieser Commit ist enthalten in:
Andrew Steinborn 2018-09-21 12:40:34 -04:00
Ursprung 284f90183f
Commit df06d85d62

19
Jenkinsfile vendored
Datei anzeigen

@ -1,12 +1,13 @@
pipeline {
agent none
stages {
stage('Build') {
agent {
docker {
image 'velocitypowered/openjdk8-plus-git:slim'
args '-v gradle-cache:/root/.gradle:rw -v maven-repo:/maven-repo:rw -v javadoc:/javadoc'
args '-v gradle-cache:/root/.gradle:rw'
}
}
stages {
stage('Build') {
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'
}