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

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git


The following commit(s) were added to refs/heads/master by this push:
     new fd53b94  SLING-11401 fix directory where local repo is created
fd53b94 is described below

commit fd53b94d47a172b340fcb23a6193f24cfcbd868e
Author: Konrad Windszus <k...@apache.org>
AuthorDate: Tue Jun 28 12:26:49 2022 +0200

    SLING-11401 fix directory where local repo is created
---
 vars/slingOsgiBundleBuild.groovy | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index a40763e..605360d 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -144,7 +144,8 @@ def defineStage(def globalConfig, def jobConfig, def 
jdkVersion, boolean isRefer
     def invocation = {
         if ( isReferenceStage ) {
             if ( goal == "deploy" && shouldDeploy ) {
-                String localRepoPath = 
"${env.WORKSPACE}/target/local-snapshots-dir"
+                // this must be an absolute path to always refer to the same 
directory (for each Maven module in a reactor)
+                String localRepoPath = "${pwd()}/target/local-snapshots-dir"
                 // Make sure the directory is wiped.
                 dir(localRepoPath) {
                     deleteDir()

Reply via email to