mirror of
https://github.com/PaperMC/Velocity.git
synced 2024-11-21 03:11:38 +08:00
22 lines
377 B
Groovy
22 lines
377 B
Groovy
pipeline {
|
|
agent {
|
|
docker {
|
|
image 'openjdk:8-jdk-slim'
|
|
args '-v gradle-cache:/root/.gradle:rw'
|
|
}
|
|
|
|
}
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
sh './gradlew shadowJar'
|
|
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
sh './gradlew test'
|
|
}
|
|
}
|
|
}
|
|
} |