added Jenkinsfile

This commit is contained in:
2021-09-26 09:32:20 +02:00
parent f2980cf2f9
commit 7f0d418a9b

25
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,25 @@
import java.nio.file.Path
import java.nio.file.Files
pipeline {
agent any
stages {
stage("Build") {
steps {
sh "./gradlew clean build"
junit testResults: "build/test-results/test/*.xml"
javadoc javadocDir: "build/docs/javadoc", keepAll: true
archiveArtifacts artifacts: 'build/libs/*.jar',
allowEmptyArchive: true,
fingerprint: true,
onlyIfSuccessful: true
}
}
stage("Publish") {
steps {
sh "./gradlew publish"
}
}
}
}