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

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-training.git


The following commit(s) were added to refs/heads/develop by this push:
     new 2a060e6  fix(build): Updated the Jenkinsfile to recent changes on infra
2a060e6 is described below

commit 2a060e6ca4f8be0459726467a1c23e9781980011
Author: cdutz <[email protected]>
AuthorDate: Wed Apr 6 11:28:24 2022 +0200

    fix(build): Updated the Jenkinsfile to recent changes on infra
---
 site/Jenkinsfile  | 27 ++++++++++++++-------------
 tools/Jenkinsfile | 15 ++++++++-------
 2 files changed, 22 insertions(+), 20 deletions(-)

diff --git a/site/Jenkinsfile b/site/Jenkinsfile
index 71ff253..12c879f 100644
--- a/site/Jenkinsfile
+++ b/site/Jenkinsfile
@@ -46,9 +46,9 @@ pipeline {
 
     stages {
         stage('Initialization') {
-            when {
+/*            when {
                 changeset "site/**"
-            }
+            }*/
             steps {
                 echo 'Building Branch: ' + env.BRANCH_NAME
                 echo 'Using PATH = ' + env.PATH
@@ -56,9 +56,9 @@ pipeline {
         }
 
         stage('Cleanup') {
-            when {
+/*            when {
                 changeset "site/**"
-            }
+            }*/
             steps {
                 echo 'Cleaning up the workspace'
                 deleteDir()
@@ -66,9 +66,9 @@ pipeline {
         }
 
         stage('Checkout') {
-            when {
+/*            when {
                 changeset "site/**"
-            }
+            }*/
             steps {
                 echo 'Checking out branch ' + env.BRANCH_NAME
                 checkout scm
@@ -76,9 +76,9 @@ pipeline {
         }
 
         stage('Build site') {
-            when {
+/*            when {
                 changeset "site/**"
-            }
+            }*/
             steps {
                 echo 'Building Site'
                 sh 'mvn -f site/pom.xml site'
@@ -86,9 +86,9 @@ pipeline {
         }
 
         stage('Stage site') {
-            when {
+/*            when {
                 changeset "site/**"
-            }
+            }*/
             steps {
                 echo 'Staging Site'
                 // Build a directory containing the aggregated website.
@@ -97,7 +97,7 @@ pipeline {
                 /* Enable this as soon as we have multiple modules
                 // Make sure the script is executable.
                 sh 'chmod +x tools/clean-site.sh'
-                // Remove some redundant resources, which shouldn'tbe required.
+                // Remove some redundant resources, which shouldn't be 
required.
                 sh 'tools/clean-site.sh'
                 */
             }
@@ -105,8 +105,9 @@ pipeline {
 
         stage('Deploy site') {
             when {
-                changeset "site/**"
-                branch 'master'
+                //changeset "site/**"
+                //branch 'master'
+                branch 'develop'
             }
             steps {
                 echo 'Deploying Site'
diff --git a/tools/Jenkinsfile b/tools/Jenkinsfile
index 53761b4..6b23e59 100644
--- a/tools/Jenkinsfile
+++ b/tools/Jenkinsfile
@@ -41,9 +41,9 @@ pipeline {
 
     stages {
         stage('Initialization') {
-            when {
+/*            when {
                 changeset "tools/**"
-            }
+            }*/
             steps {
                 echo 'Building Branch: ' + env.BRANCH_NAME
                 echo 'Using PATH = ' + env.PATH
@@ -51,9 +51,9 @@ pipeline {
         }
 
         stage('Cleanup') {
-            when {
+/*            when {
                 changeset "tools/**"
-            }
+            }*/
             steps {
                 echo 'Cleaning up the workspace'
                 deleteDir()
@@ -61,9 +61,9 @@ pipeline {
         }
 
         stage('Checkout') {
-            when {
+/*            when {
                 changeset "tools/**"
-            }
+            }*/
             steps {
                 echo 'Checking out branch ' + env.BRANCH_NAME
                 checkout scm
@@ -72,7 +72,8 @@ pipeline {
 
         stage('Build') {
             when {
-                changeset "tools/**"
+                //changeset "tools/**"
+                branch 'develop'
             }
             steps {
                 echo 'Building'

Reply via email to