diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..48772e9 --- /dev/null +++ b/Jenkinsfile @@ -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" + } + } + } +} +