geforkt von Mirrors/Velocity
Combine the javadoc and publish stages together
In other words, the security-sensitive stuff now runs on its own agent.
Dieser Commit ist enthalten in:
Ursprung
df06d85d62
Commit
b894dfbdd4
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
@ -13,7 +13,7 @@ pipeline {
|
|||||||
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy Artifacts') {
|
stage('Deploy') {
|
||||||
when {
|
when {
|
||||||
expression {
|
expression {
|
||||||
GIT_BRANCH = sh(returnStdout: true, script: 'git rev-parse --abbrev-ref HEAD').trim()
|
GIT_BRANCH = sh(returnStdout: true, script: 'git rev-parse --abbrev-ref HEAD').trim()
|
||||||
@ -23,27 +23,11 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
docker {
|
docker {
|
||||||
image 'velocitypowered/openjdk8-plus-git:slim'
|
image 'velocitypowered/openjdk8-plus-git:slim'
|
||||||
args '-v maven-repo:/maven-repo:rw'
|
args '-v gradle-cache:/root/.gradle:rw -v maven-repo:/maven-repo:rw -v javadoc:/javadoc:rw'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'export MAVEN_DEPLOYMENT=true; ./gradlew publish'
|
sh 'export MAVEN_DEPLOYMENT=true; ./gradlew publish'
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Deploy Javadoc') {
|
|
||||||
when {
|
|
||||||
expression {
|
|
||||||
GIT_BRANCH = sh(returnStdout: true, script: 'git rev-parse --abbrev-ref HEAD').trim()
|
|
||||||
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'
|
sh 'rsync -av --delete ./api/build/docs/javadoc/ /javadoc'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren