From commits-return-496-archive-asf-public=cust-asf.ponee.io@zipkin.apache.org Mon Apr 22 07:31:15 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id F02A718064D for ; Mon, 22 Apr 2019 09:31:14 +0200 (CEST) Received: (qmail 6000 invoked by uid 500); 22 Apr 2019 07:31:14 -0000 Mailing-List: contact commits-help@zipkin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zipkin.apache.org Delivered-To: mailing list commits@zipkin.apache.org Received: (qmail 5991 invoked by uid 99); 22 Apr 2019 07:31:14 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Apr 2019 07:31:14 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 32A0387A2C; Mon, 22 Apr 2019 07:31:09 +0000 (UTC) Date: Mon, 22 Apr 2019 07:31:09 +0000 To: "commits@zipkin.apache.org" Subject: [incubator-zipkin-website] branch sync-from-githubio updated: [Jenkinsfile] Run only on master/PR, publish only from master MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <155591826911.28667.17030748806216513813@gitbox.apache.org> From: abesto@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-zipkin-website X-Git-Refname: refs/heads/sync-from-githubio X-Git-Reftype: branch X-Git-Oldrev: 2350c242ff1bb25e5a250474cecd448847aea01f X-Git-Newrev: 641d27a307dd1a82673308586a27557da7117135 X-Git-Rev: 641d27a307dd1a82673308586a27557da7117135 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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