You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@training.apache.org by cd...@apache.org on 2019/04/26 10:09:42 UTC

[incubator-training] branch feature/changed-directory-structure updated: - Tried to prevent all jobs from running on every commit

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

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


The following commit(s) were added to refs/heads/feature/changed-directory-structure by this push:
     new 6604f13  - Tried to prevent all jobs from running on every commit
6604f13 is described below

commit 6604f13c1f44fe1f8dd82f599f147304136bf442
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Fri Apr 26 12:09:29 2019 +0200

    - Tried to prevent all jobs from running on every commit
---
 site/Jenkinsfile                                     | 18 ++++++++++++++++++
 tools/maven-revealjs-asciidoctor-templte/Jenkinsfile | 12 ++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/site/Jenkinsfile b/site/Jenkinsfile
index 82d1b50..31c8d16 100644
--- a/site/Jenkinsfile
+++ b/site/Jenkinsfile
@@ -46,6 +46,9 @@ pipeline {
 
     stages {
         stage('Initialization') {
+            when {
+                changeset "site/**"
+            }
             steps {
                 echo 'Building Branch: ' + env.BRANCH_NAME
                 echo 'Using PATH = ' + env.PATH
@@ -53,6 +56,9 @@ pipeline {
         }
 
         stage('Cleanup') {
+            when {
+                changeset "site/**"
+            }
             steps {
                 echo 'Cleaning up the workspace'
                 deleteDir()
@@ -60,6 +66,9 @@ pipeline {
         }
 
         stage('Checkout') {
+            when {
+                changeset "site/**"
+            }
             steps {
                 echo 'Checking out branch ' + env.BRANCH_NAME
                 checkout scm
@@ -67,6 +76,9 @@ pipeline {
         }
 
         stage('Build site') {
+            when {
+                changeset "site/**"
+            }
             steps {
                 echo 'Building Site'
                 sh 'mvn -f site/pom.xml site'
@@ -74,6 +86,9 @@ pipeline {
         }
 
         stage('Stage site') {
+            when {
+                changeset "site/**"
+            }
             steps {
                 echo 'Staging Site'
                 // Build a directory containing the aggregated website.
@@ -90,6 +105,9 @@ pipeline {
 
         stage('Deploy site') {
             when {
+                changeset "site/**"
+            }
+            when {
                 branch 'feature/changed-directory-structure'
             }
             steps {
diff --git a/tools/maven-revealjs-asciidoctor-templte/Jenkinsfile b/tools/maven-revealjs-asciidoctor-templte/Jenkinsfile
index d23dc38..b202854 100644
--- a/tools/maven-revealjs-asciidoctor-templte/Jenkinsfile
+++ b/tools/maven-revealjs-asciidoctor-templte/Jenkinsfile
@@ -35,6 +35,9 @@ pipeline {
 
     stages {
         stage('Initialization') {
+            when {
+                changeset "tools/maven-revealjs-asciidoctor-templte/**"
+            }
             steps {
                 echo 'Building Branch: ' + env.BRANCH_NAME
                 echo 'Using PATH = ' + env.PATH
@@ -42,6 +45,9 @@ pipeline {
         }
 
         stage('Cleanup') {
+            when {
+                changeset "tools/maven-revealjs-asciidoctor-templte/**"
+            }
             steps {
                 echo 'Cleaning up the workspace'
                 deleteDir()
@@ -49,6 +55,9 @@ pipeline {
         }
 
         stage('Checkout') {
+            when {
+                changeset "tools/maven-revealjs-asciidoctor-templte/**"
+            }
             steps {
                 echo 'Checking out branch ' + env.BRANCH_NAME
                 checkout scm
@@ -56,6 +65,9 @@ pipeline {
         }
 
         stage('Build') {
+            when {
+                changeset "tools/maven-revealjs-asciidoctor-templte/**"
+            }
             steps {
                 echo 'Building'
                 sh 'mvn -f tools/maven-revealjs-asciidoctor-templte/pom.xml package'