Add Jenkinsfile

pull/66/head
Graham 4 years ago
parent a1d1c74987
commit 73df826e85
  1. 30
      Jenkinsfile

30
Jenkinsfile vendored

@ -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'
)
}
}
}
Loading…
Cancel
Save