3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2025-01-11 23:51:22 +01:00
Velocity/Jenkinsfile

32 Zeilen
692 B
Plaintext

2018-07-26 01:03:59 -04:00
pipeline {
agent {
docker {
image 'velocitypowered/openjdk8-plus-git:slim'
2018-08-25 00:42:54 -04:00
args '-v gradle-cache:/root/.gradle:rw -v maven-repo:/maven-repo:rw -v javadoc:/javadoc'
2018-07-26 01:03:59 -04:00
}
}
stages {
stage('Build') {
steps {
sh './gradlew shadowJar'
2018-07-31 21:07:18 -04:00
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
2018-07-26 01:03:59 -04:00
}
}
stage('Test') {
steps {
sh './gradlew test'
}
}
2018-08-21 23:26:41 -04:00
stage('Deploy Artifacts') {
steps {
2018-08-21 23:35:09 -04:00
sh 'export MAVEN_DEPLOYMENT=true; ./gradlew publish'
2018-08-21 23:26:41 -04:00
}
}
2018-08-25 00:42:54 -04:00
stage('Deploy Javadoc') {
steps {
2018-08-25 00:44:32 -04:00
sh 'rsync -av --delete ./api/build/docs/javadoc/ /javadoc'
2018-08-25 00:42:54 -04:00
}
}
2018-07-26 01:03:59 -04:00
}
}