Velocity/Jenkinsfile

27 lines
547 B
Plaintext
Raw Normal View History

2018-07-26 13:03:59 +08:00
pipeline {
agent {
docker {
image 'velocitypowered/openjdk8-plus-git:slim'
2018-08-22 11:26:41 +08:00
args '-v gradle-cache:/root/.gradle:rw -v maven-repo:/maven-repo:rw'
2018-07-26 13:03:59 +08:00
}
}
stages {
stage('Build') {
steps {
sh './gradlew shadowJar'
2018-08-01 09:07:18 +08:00
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
2018-07-26 13:03:59 +08:00
}
}
stage('Test') {
steps {
sh './gradlew test'
}
}
2018-08-22 11:26:41 +08:00
stage('Deploy Artifacts') {
steps {
2018-08-22 11:35:09 +08:00
sh 'export MAVEN_DEPLOYMENT=true; ./gradlew publish'
2018-08-22 11:26:41 +08:00
}
}
2018-07-26 13:03:59 +08:00
}
}