You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by gk...@apache.org on 2022/01/19 12:32:42 UTC

[turbine-build] branch master updated: Fix remove chdir as we use a plain git checkout, not as a submodule

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

gk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/turbine-build.git


The following commit(s) were added to refs/heads/master by this push:
     new 5df43b4  Fix remove chdir as we use a plain git checkout, not as a submodule
5df43b4 is described below

commit 5df43b40f29303469578913cec7b9d8bdd78e757
Author: Georg Kallidis <gk...@apache.org>
AuthorDate: Wed Jan 19 13:31:43 2022 +0100

    Fix remove chdir as we use a plain git checkout, not as a submodule
---
 Jenkinsfile | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index a8f097e..f7a682c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -34,9 +34,8 @@
 
 // Jenkins build server used: https://builds.apache.org/ / ci-builds.apache.org
 
-// Fulcurm-Build has submodules, which are expcetd for this Jenkinsfile NOT to be fetched if cloning!
-// This is the default (do NOT provide git clone --recurse-submodules flag) and this is because
-// only the current submodule is initialized downstrema with git submodule update --init
+// Fulcurm-Build has submodules, which are NOT Used for this Jenkinsfile.
+// The default is NOT to provide git clone --recurse-submodules flag).
 
 // This is a simplified version of turbine-fulcrum-build/Jenkinsfile.
 
@@ -111,15 +110,12 @@ pipeline
             }
             steps
             {
-                dir("${params.TURBINE_COMPONENT}")
-                    {
-                        sh "pwd"
-                        // builds into target/site folder, this folder is expected to be preserved as it is used in next step
-                        sh "mvn $MAVEN_CLI_OPTS $MAVEN_GOALS"
-                        // save as pipeline stash, thanks to https://cwiki.apache.org/confluence/display/INFRA/Multibranch+Pipeline+recipes
-                        // https://docs.cloudbees.com/docs/admin-resources/latest/automating-with-jenkinsfile/using-multiple-agents
-                        stash includes: "${STAGING_DIR}/**/*", name: "${params.TURBINE_COMPONENT}-site"
-                    }
+                sh "pwd"
+                // builds into target/site folder, this folder is expected to be preserved as it is used in next step
+                sh "mvn $MAVEN_CLI_OPTS $MAVEN_GOALS"
+                // save as pipeline stash, thanks to https://cwiki.apache.org/confluence/display/INFRA/Multibranch+Pipeline+recipes
+                // https://docs.cloudbees.com/docs/admin-resources/latest/automating-with-jenkinsfile/using-multiple-agents
+                stash includes: "${STAGING_DIR}/**/*", name: "${params.TURBINE_COMPONENT}-site"
             }
         }
         stage('Deploy Site')