Skip to content

Commit 84397e2

Browse files
committed
updated jenkinsfile
1 parent 1afa722 commit 84397e2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Jenkinsfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ pipeline {
9090
}
9191
}
9292
stage('Integration Tests') {
93+
stage('Integration Tests') {
9394
when {
9495
anyOf {
9596
branch 'main'
@@ -98,7 +99,7 @@ pipeline {
9899
}
99100
}
100101
options {
101-
timeout(activity: true, time: 120, unit: 'SECONDS')
102+
timeout(activity: true, time: 1800, unit: 'SECONDS')
102103
}
103104
steps {
104105
withMaven(jdk: env.JDK_TOOL_NAME, maven: env.MAVEN_TOOL_NAME) {
@@ -110,7 +111,10 @@ pipeline {
110111
junit testResults: '**/target/failsafe-reports/TEST-*.xml', allowEmptyResults: true
111112
}
112113
success {
113-
publishCoverage adapters: [jacoco(mergeToOneReport: true, path: '**/target/site/jacoco/jacoco.xml')]
114+
discoverReferenceBuild()
115+
recordCoverage(tools: [[ parser: 'JACOCO' ]],
116+
id: 'jacoco', name: 'JaCoCo Coverage',
117+
sourceCodeRetention: 'LAST_BUILD')
114118
}
115119
}
116120
}

0 commit comments

Comments
 (0)