added Jenkinsfile

This commit is contained in:
2021-09-25 21:35:55 +02:00
parent f45e25bcd3
commit a39f2c21fb

23
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,23 @@
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"
}
}
}
}