Skip to content

Commit

Permalink
Add build step "Archive Artifacts"
Browse files Browse the repository at this point in the history
Also capture JUnit reports
  • Loading branch information
fwaibel committed Oct 22, 2023
1 parent 4013b94 commit 9aa3225
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Jenkinsfile
Expand Up @@ -28,12 +28,18 @@ spec:
}
}
stages {
stage('Build') {
stage('Gradle Build') {
steps {
container('gradle') {
sh 'gradle build'
sh 'gradle build --continue'
junit '**/build/test-results/test/*.xml'
}
}
}
stage('Archive Artifacts') {
steps {
archiveArtifacts artifacts: '**/build/libs/*.jar', allowEmptyArchive: true
}
}
}
}
4 changes: 4 additions & 0 deletions build.gradle
Expand Up @@ -82,6 +82,10 @@ configure(javaProjects) {
mavenCentral()
}
test {
reports {
junitXml.enabled = true
}

// https://www.oracle.com/java/technologies/javase/8u331-relnotes.html
systemProperties['jdk.xml.xpathExprOpLimit'] = 0

Expand Down

0 comments on commit 9aa3225

Please sign in to comment.