zipkin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abe...@apache.org
Subject [incubator-zipkin-website] branch sync-from-githubio updated: [Jenkinsfile] Run only on master/PR, publish only from master
Date Mon, 22 Apr 2019 07:31:09 GMT
This is an automated email from the ASF dual-hosted git repository.

abesto pushed a commit to branch sync-from-githubio
in repository https://gitbox.apache.org/repos/asf/incubator-zipkin-website.git


The following commit(s) were added to refs/heads/sync-from-githubio by this push:
     new 641d27a  [Jenkinsfile] Run only on master/PR, publish only from master
641d27a is described below

commit 641d27a307dd1a82673308586a27557da7117135
Author: Zoltan Nagy <abesto0@gmail.com>
AuthorDate: Mon Apr 22 08:25:43 2019 +0100

    [Jenkinsfile] Run only on master/PR, publish only from master
---
 Jenkinsfile | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 4068696..0d6a512 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -14,6 +14,12 @@ pipeline {
 
 	stages {
 		stage('SCM Checkout') {
+			when {
+				anyOf {
+					branch 'master'
+					changeRequest target: 'master'
+				}
+			}
 			steps {
 				deleteDir()
 				checkout scm
@@ -21,6 +27,12 @@ pipeline {
 		}
 
 		stage('Check environment') {
+			when {
+				anyOf {
+					branch 'master'
+					changeRequest target: 'master'
+				}
+			}
 			steps {
 				sh 'env'
 				sh 'pwd'
@@ -33,6 +45,12 @@ pipeline {
 		}
 
 		stage('Install Jekyll') {
+			when {
+				anyOf {
+					branch 'master'
+					changeRequest target: 'master'
+				}
+			}
 			steps {
 				sh '''
 				. "${rvm_path}/scripts/rvm"
@@ -44,6 +62,12 @@ pipeline {
 		}
 
 		stage('Build site') {
+			when {
+				anyOf {
+					branch 'master'
+					changeRequest target: 'master'
+				}
+			}
 			steps {
 				sh '''
 				. "${rvm_path}/scripts/rvm"
@@ -55,6 +79,9 @@ pipeline {
 		}
 
 		stage('Publish') {
+			when {
+				branch 'master'
+			}
 			steps {
 				sh '''
 				set -xeuo pipefail


Mime
View raw message