From commits-return-51940-archive-asf-public=cust-asf.ponee.io@directory.apache.org Sat Jul 25 15:55:41 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mailroute1-lw-us.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id E1BAC18064D for ; Sat, 25 Jul 2020 17:55:40 +0200 (CEST) Received: from mail.apache.org (localhost [127.0.0.1]) by mailroute1-lw-us.apache.org (ASF Mail Server at mailroute1-lw-us.apache.org) with SMTP id 13335126DB7 for ; Sat, 25 Jul 2020 15:55:40 +0000 (UTC) Received: (qmail 62199 invoked by uid 500); 25 Jul 2020 15:55:39 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 62190 invoked by uid 99); 25 Jul 2020 15:55:39 -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; Sat, 25 Jul 2020 15:55:39 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 9772082072; Sat, 25 Jul 2020 15:55:39 +0000 (UTC) Date: Sat, 25 Jul 2020 15:55:39 +0000 To: "commits@directory.apache.org" Subject: [directory-project] branch master updated: Add Jenkinsfile MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <159569253956.31775.12769588709123278314@gitbox.apache.org> From: seelmann@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: directory-project X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: f0138a32b39a1cfd4d0cf2751a3bcd86533a9606 X-Git-Newrev: 0d60d391b1a23674d1678810da0c9caaf41283b0 X-Git-Rev: 0d60d391b1a23674d1678810da0c9caaf41283b0 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. seelmann pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/directory-project.git The following commit(s) were added to refs/heads/master by this push: new 0d60d39 Add Jenkinsfile 0d60d39 is described below commit 0d60d391b1a23674d1678810da0c9caaf41283b0 Author: Stefan Seelmann AuthorDate: Sat Jul 25 17:55:07 2020 +0200 Add Jenkinsfile --- Jenkinsfile | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..ae30c96 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,67 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +pipeline { + agent none + options { + buildDiscarder(logRotator(numToKeepStr: '10')) + timeout(time: 8, unit: 'HOURS') + } + triggers { + cron('@weekly') + pollSCM('@daily') + } + stages { + stage ('Build and Deploy') { + options { + timeout(time: 2, unit: 'HOURS') + retry(2) + } + agent { + label 'ubuntu' + } + // https://cwiki.apache.org/confluence/display/INFRA/JDK+Installation+Matrix + // https://cwiki.apache.org/confluence/display/INFRA/Maven+Installation+Matrix + steps { + sh ''' + export JAVA_HOME=/home/jenkins/tools/java/latest1.8 + export MAVEN_OPTS="-Xmx512m" + /home/jenkins/tools/maven/latest3/bin/mvn -V clean deploy + ''' + } + post { + always { + deleteDir() + } + } + } + } + post { + failure { + mail to: 'notifications@directory.apache.org', + subject: "Jenkins pipeline failed: ${currentBuild.fullDisplayName}", + body: "Jenkins build URL: ${env.BUILD_URL}" + } + fixed { + mail to: 'notifications@directory.apache.org', + subject: "Jenkins pipeline fixed: ${currentBuild.fullDisplayName}", + body: "Jenkins build URL: ${env.BUILD_URL}" + } + } +} +