From commits-return-229-archive-asf-public=cust-asf.ponee.io@zipkin.apache.org Thu Jan 31 10:26:52 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9DF2D1807AA for ; Thu, 31 Jan 2019 11:26:50 +0100 (CET) Received: (qmail 15961 invoked by uid 500); 31 Jan 2019 10:26:41 -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 15821 invoked by uid 99); 31 Jan 2019 10:26:41 -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; Thu, 31 Jan 2019 10:26:41 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id C2BB385798; Thu, 31 Jan 2019 10:26:40 +0000 (UTC) Date: Thu, 31 Jan 2019 10:27:22 +0000 To: "commits@zipkin.apache.org" Subject: [incubator-zipkin-brave-karaf] 43/43: [jenkins] Tweaks, e-mail notification MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: abesto@apache.org In-Reply-To: <154893039963.1974.10943537260093250828@gitbox.apache.org> References: <154893039963.1974.10943537260093250828@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-zipkin-brave-karaf X-Git-Refname: refs/heads/jenkinsfile-tweaks X-Git-Reftype: branch X-Git-Rev: 82ca1bca965db7b584874a9689386240e66a6609 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20190131102640.C2BB385798@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. abesto pushed a commit to branch jenkinsfile-tweaks in repository https://gitbox.apache.org/repos/asf/incubator-zipkin-brave-karaf.git commit 82ca1bca965db7b584874a9689386240e66a6609 Author: Zoltan Nagy AuthorDate: Thu Jan 31 10:23:14 2019 +0000 [jenkins] Tweaks, e-mail notification * Keep 30 builds instead of 10 * Don't run any stages after tests if tests fail * Time out after 30 minutes * WIP code for releasing snapshots from master * Mail notifications on master build status change --- Jenkinsfile | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 90fa378..1886524 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,8 +8,12 @@ pipeline { } options { - buildDiscarder(logRotator(numToKeepStr: '10')) + buildDiscarder(logRotator( + numToKeepStr: '30', + )) timestamps() + skipStagesAfterUnstable() + timeout time: 30, unit: 'MINUTES' } stages { @@ -35,13 +39,38 @@ pipeline { sh './mvnw clean install' } } - } + /* + TODO uncomment and finish up the command here once we're ready to release snapshots + stage('Publish snapshot') { + when { + branch 'master' + } + steps { + sh './mvnw $TODO' + } + } + */ + } post { always { junit '**/target/surefire-reports/*.xml' deleteDir() } + + changed { + script { + if (env.BRANCH_NAME == 'master') { + emailext( + subject: "[${currentBuild.projectName}] master is ${currentBuild.currentResult} (#${currentBuild.number})", + to: 'notifications@zipkin.apache.org' + replyTo: 'dev@zipkin.apache.org', + body: "See <${currentBuild.absoluteUrl}>", + ) + } + } + + } } }