From 73df826e85ed94019fa5b323b5bb4f0814d94b3b Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 9 Feb 2020 17:10:50 +0000 Subject: [PATCH] Add Jenkinsfile --- Jenkinsfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000..b30ad0b5c4 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,30 @@ +pipeline { + agent any + + stages { + stage('Build') { + steps { + withCredentials([usernamePassword( + credentialsId: 'archiva', + usernameVariable: 'ORG_GRADLE_PROJECT_repoUsername', + passwordVariable: 'ORG_GRADLE_PROJECT_repoPassword' + )]) { + withGradle { + sh './gradlew --no-daemon clean build publish' + } + } + } + } + } + + post { + always { + junit '**/build/test-results/test/*.xml' + jacoco( + execPattern: '**/build/jacoco/test.exec', + classPattern: '**/build/classes/*/main', + sourcePattern: '**/src/main' + ) + } + } +}