diff --git a/Jenkinsfile b/Jenkinsfile index 160d240..a692269 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 + } + } } } diff --git a/build.gradle b/build.gradle index 993110f..c4d0ea2 100644 --- a/build.gradle +++ b/build.gradle @@ -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