Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-26 00:00:55 +01:00
Make sure to not archive PR JAR artifacts.
Dieser Commit ist enthalten in:
Ursprung
d3b1bc9e34
Commit
88d9979e8b
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -2,6 +2,8 @@ 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'
|
||||||
@ -10,9 +12,11 @@ pipeline {
|
|||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh './gradlew build --no-daemon'
|
sh './gradlew build --no-daemon'
|
||||||
|
if (GIT_BRANCH == "master") {
|
||||||
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
when {
|
when {
|
||||||
expression {
|
expression {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren