You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2022/06/15 15:18:03 UTC

[sling-tooling-jenkins] branch master updated: make sure to always clone first on each node before triggering Maven build

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 3f1c6b1  make sure to always clone first on each node before triggering Maven build
3f1c6b1 is described below

commit 3f1c6b1dcdb6e94d10f4aebeb3aa950140fa5999
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Wed Jun 15 17:17:58 2022 +0200

    make sure to always clone first on each node before triggering Maven
    build
---
 vars/slingOsgiBundleBuild.groovy | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index ced1db8..008248c 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -87,6 +87,7 @@ def call(Map params = [:]) {
             if ( stepsMap.size() > 1 ) {
                 node(globalConfig.mainNodeLabel) {
                     stage("Sanity Check") {
+                        checkout scm
                         withMaven(maven: globalConfig.mvnVersion,
                             jdk: jenkinsJdkLabel(referenceJdkVersion, globalConfig),
                             publisherStrategy: 'EXPLICIT') {
@@ -149,6 +150,7 @@ def defineStage(def globalConfig, def jobConfig, def jdkVersion, boolean isRefer
             // deploy to local directory (all artifacts from a reactor)
             additionalMavenParams = "${additionalMavenParams} -DaltDeploymentRepository=snapshot-repo::default::file:${localRepoPath}"
         }
+        checkout scm
         withMaven(maven: globalConfig.mvnVersion, jdk: jenkinsJdkLabel,
             options: [
                 artifactsPublisher(disabled: !isReferenceStage),