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

jungm pushed a commit to branch ee11
in repository https://gitbox.apache.org/repos/asf/tomee-tck.git


The following commit(s) were added to refs/heads/ee11 by this push:
     new b491a27  Clone once and stash the source for all parallel Jenkins 
stages
b491a27 is described below

commit b491a2798403fda4ca8dfc77b5a53ede54393e05
Author: Markus Jung <[email protected]>
AuthorDate: Sun Jul 19 15:05:34 2026 +0200

    Clone once and stash the source for all parallel Jenkins stages
---
 Jenkinsfile | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index b2aeb63..3d6bc47 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -28,7 +28,9 @@ pipeline {
       options { timeout(time: 15, unit: 'MINUTES') }
       steps {
         deleteDir()
+
         checkout scm
+        stash name: 'source'
 
         sh 'sh environment/verify-inputs.sh --metadata-only'
         sh '''
@@ -79,7 +81,7 @@ from xml.etree import ElementTree
             options { timeout(time: 30, unit: 'MINUTES') }
             steps {
               deleteDir()
-              checkout scm
+              unstash 'source'
               sh './mvnw -B -ntp -pl runner-smoke -am verify'
             }
             post {
@@ -105,7 +107,7 @@ from xml.etree import ElementTree
               stage(branchName) {
                 node('ubuntu && ephemeral') {
                   deleteDir()
-                  checkout scm
+                  unstash 'source'
                   def javaHome = tool(name: 'jdk_21_latest', type: 
'hudson.model.JDK')
 
                   try {
@@ -158,7 +160,7 @@ from xml.etree import ElementTree
               stage("standalone - ${id}") {
                 node('ubuntu && ephemeral') {
                   deleteDir()
-                  checkout scm
+                  unstash 'source'
                   def javaHome = tool(name: 'jdk_21_latest', type: 
'hudson.model.JDK')
 
                   try {
@@ -208,7 +210,7 @@ from xml.etree import ElementTree
               stage('standalone - faces') {
                 node('ubuntu && ephemeral') {
                   deleteDir()
-                  checkout scm
+                  unstash 'source'
 
                   try {
                     timeout(time: timeoutMinutes, unit: 'MINUTES') {

Reply via email to