Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5205C200BFD for ; Sun, 15 Jan 2017 21:37:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5097A160B32; Sun, 15 Jan 2017 20:37:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 96B78160B2B for ; Sun, 15 Jan 2017 21:37:58 +0100 (CET) Received: (qmail 10490 invoked by uid 500); 15 Jan 2017 20:37:57 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 10481 invoked by uid 99); 15 Jan 2017 20:37:57 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jan 2017 20:37:57 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 912D9DFC16; Sun, 15 Jan 2017 20:37:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: stephenc@apache.org To: commits@maven.apache.org Message-Id: <5a90ef5488874308947073db44bb6fbd@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: maven-resolver git commit: Add a Jenkinsfile [Forced Update!] Date: Sun, 15 Jan 2017 20:37:57 +0000 (UTC) archived-at: Sun, 15 Jan 2017 20:37:59 -0000 Repository: maven-resolver Updated Branches: refs/heads/MNG-6007 1d6e0549a -> c190f7b16 (forced update) Add a Jenkinsfile Project: http://git-wip-us.apache.org/repos/asf/maven-resolver/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-resolver/commit/c190f7b1 Tree: http://git-wip-us.apache.org/repos/asf/maven-resolver/tree/c190f7b1 Diff: http://git-wip-us.apache.org/repos/asf/maven-resolver/diff/c190f7b1 Branch: refs/heads/MNG-6007 Commit: c190f7b1603f39691c7c09a3169180bf0120454d Parents: 8bd8c53 Author: Stephen Connolly Authored: Sun Jan 15 20:23:22 2017 +0000 Committer: Stephen Connolly Committed: Sun Jan 15 20:37:51 2017 +0000 ---------------------------------------------------------------------- Jenkinsfile | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven-resolver/blob/c190f7b1/Jenkinsfile ---------------------------------------------------------------------- diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..50121ac --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,45 @@ +/* + * 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. + */ + +properties([buildDiscarder(logRotator(artifactNumToKeepStr: '5', numToKeepStr: env.BRANCH_NAME=='master'?'10':'5'))]) + +try { +node('ubuntu') { + stage 'Checkout' + def MAVEN_BUILD=tool name: 'Maven 3.3.9', type: 'hudson.tasks.Maven$MavenInstallation' + echo "Driving build and unit tests using Maven $MAVEN_BUILD" + def JAVA7_HOME=tool name: 'JDK 1.7 (latest)', type: 'hudson.model.JDK' + echo "Running build and unit tests with Java $JAVA7_HOME" + dir('build') { + checkout scm + def WORK_DIR=pwd() + stage 'Build / Unit Test' + withEnv(["PATH+MAVEN=$MAVEN_BUILD/bin","PATH+JDK=$JAVA7_HOME/bin"]) { + sh "mvn clean verify -B -U -e -fae -V -Dmaven.test.failure.ignore=true -Dmaven.repo.local=$WORK_DIR/.repository" + } + junit allowEmptyResults: true, testResults:'**/target/*-reports/*.xml' + } +} + +} finally {} + node('ubuntu') { + emailext body: "See ${env.BUILD_URL}", recipientProviders: [[$class: 'CulpritsRecipientProvider'], [$class: 'FailingTestSuspectsRecipientProvider'], [$class: 'FirstFailingBuildSuspectsRecipientProvider']], replyTo: 'dev@maven.apache.org', subject: "Maven Resolver Jenkinsfile finished with ${currentBuild.result}", to: 'notifications@maven.apache.org' + } +} +