This is an automated email from the ASF dual-hosted git repository.

benw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tapestry-5.git

commit 1397fd7d5a5973adbe7e234fa567f6cdeff34a70
Author: Ben Weidig <[email protected]>
AuthorDate: Mon Mar 30 12:03:43 2026 +0200

    TAP5-2819: Jenkinsfile always archive test and coverage artifacts
---
 Jenkinsfile | 42 +++++++++++++++++-------------------------
 1 file changed, 17 insertions(+), 25 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index f7fd54154..a9ed885ba 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -40,39 +40,31 @@ pipeline {
                         testResults: '**/build/test-results/test/**/*.xml',
                         allowEmptyResults: true
                     )
+                    archiveArtifacts(
+                        artifacts: '**/build/reports/tests/**/*, 
**/build/test-results/**/*',
+                        allowEmptyArchive: true
+                    )
                 }
             }
         }
 
         // -- 03: Coverage (JaCoCo) 
--------------------------------------------
 
-//       stage('Coverage') {
-//           steps {
-//               sh './gradlew combinedJacocoReport'
-//           }
-//           post {
-//               always {
-//                   jacoco(
-//                       execPattern:   '**/build/jacoco/*.exec',
-//                       classPattern:  '**/build/classes/java/main',
-//                       sourcePattern: '**/src/main/java'
-//                   )
-//               }
-//           }
-//       }
-
-        // -- 04: Archive Artifacts 
--------------------------------------------
-
-        stage('Archive') {
-            steps {
-                archiveArtifacts(
-                    artifacts: '**/build/reports/**/*, 
**/build/test-results/**/*',
-                    allowEmptyArchive: true
-                )
-            }
+       stage('Coverage') {
+           steps {
+               sh './gradlew combinedJacocoReport'
+           }
+           post {
+               always {
+                    archiveArtifacts(
+                        artifacts: '**/build/reports/jacoco/**/*',
+                        allowEmptyArchive: true
+                    )
+               }
+           }
         }
 
-        // -- 05: Aggregate Javadoc 
--------------------------------------------
+        // -- 04: Aggregate Javadoc 
--------------------------------------------
 
         stage('Aggregate Javadoc') {
             steps {

Reply via email to