added Jenkinsfile

This commit is contained in:
2021-10-30 17:22:04 +02:00
parent 5aea49219f
commit 7f8557541a
5 changed files with 53 additions and 15 deletions

22
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,22 @@
import java.nio.file.Path
import java.nio.file.Files
pipeline {
agent any
stages {
stage("Build") {
steps {
sh "./gradlew clean build"
archiveArtifacts artifacts: 'build/libs/*.jar',
allowEmptyArchive: true,
fingerprint: true,
onlyIfSuccessful: true
}
}
stage("Publish") {
steps {
sh "./gradlew publish"
}
}
}
}