mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-02-23 15:49:19 +08:00
22 lines
338 B
Groovy
22 lines
338 B
Groovy
pipeline {
|
|
agent {
|
|
docker {
|
|
image 'gradle:jdk8-slim'
|
|
args '-v /root/.gradle:/root/.gradle'
|
|
}
|
|
|
|
}
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
sh './gradlew shadowJar'
|
|
archiveArtifacts 'build/libs/*.jar'
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
sh './gradlew test'
|
|
}
|
|
}
|
|
}
|
|
} |