diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..b30ad0b5 --- /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' + ) + } + } +}