From d13f170b651f0290389151d113e85546314910de Mon Sep 17 00:00:00 2001 From: Peixin Date: Mon, 27 Nov 2023 08:53:56 +0800 Subject: [PATCH] Delete pre-merge workspace content if success (#9849) Signed-off-by: Peixin Li --- jenkins/Jenkinsfile-blossom.premerge | 3 +++ jenkins/Jenkinsfile-blossom.premerge-databricks | 1 + 2 files changed, 4 insertions(+) diff --git a/jenkins/Jenkinsfile-blossom.premerge b/jenkins/Jenkinsfile-blossom.premerge index bf58e7955f8..ac4874a8aac 100755 --- a/jenkins/Jenkinsfile-blossom.premerge +++ b/jenkins/Jenkinsfile-blossom.premerge @@ -202,6 +202,7 @@ git --no-pager diff --name-only HEAD \$BASE -- ${PREMERGE_DOCKERFILE} || true""" common.publishPytestResult(this, "${STAGE_NAME}") common.printJVMCoreDumps(this) } + deleteDir() // cleanup content if no error } } } @@ -233,6 +234,7 @@ git --no-pager diff --name-only HEAD \$BASE -- ${PREMERGE_DOCKERFILE} || true""" common.publishPytestResult(this, "${STAGE_NAME}") common.printJVMCoreDumps(this) } + deleteDir() // cleanup content if no error } } } @@ -264,6 +266,7 @@ git --no-pager diff --name-only HEAD \$BASE -- ${PREMERGE_DOCKERFILE} || true""" common.publishPytestResult(this, "${STAGE_NAME}") common.printJVMCoreDumps(this) } + deleteDir() // cleanup content if no error } } } diff --git a/jenkins/Jenkinsfile-blossom.premerge-databricks b/jenkins/Jenkinsfile-blossom.premerge-databricks index 27c42f59aab..2fd2df7a8b0 100644 --- a/jenkins/Jenkinsfile-blossom.premerge-databricks +++ b/jenkins/Jenkinsfile-blossom.premerge-databricks @@ -112,6 +112,7 @@ pipeline { script { unstash('source_tree') databricksBuild() + deleteDir() // cleanup content if no error } } }