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 EDA62200C4B for ; Mon, 20 Mar 2017 10:06:41 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EC0B2160B81; Mon, 20 Mar 2017 09:06:41 +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 17A59160B76 for ; Mon, 20 Mar 2017 10:06:40 +0100 (CET) Received: (qmail 11211 invoked by uid 500); 20 Mar 2017 09:06:40 -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 11197 invoked by uid 99); 20 Mar 2017 09:06:38 -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; Mon, 20 Mar 2017 09:06:38 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 42001DFE1D; Mon, 20 Mar 2017 09:06:38 +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: X-Mailer: ASF-Git Admin Mailer Subject: maven git commit: checking GitPubSub notifications for INFRA-13667 Date: Mon, 20 Mar 2017 09:06:38 +0000 (UTC) archived-at: Mon, 20 Mar 2017 09:06:42 -0000 Repository: maven Updated Branches: refs/heads/empty [created] dc7e2c626 checking GitPubSub notifications for INFRA-13667 Project: http://git-wip-us.apache.org/repos/asf/maven/repo Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/dc7e2c62 Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/dc7e2c62 Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/dc7e2c62 Branch: refs/heads/empty Commit: dc7e2c6262212ab540a669874fb1fed85eab11db Parents: 68e38e50 Author: Stephen Connolly Authored: Mon Mar 20 09:06:17 2017 +0000 Committer: Stephen Connolly Committed: Mon Mar 20 09:06:17 2017 +0000 ---------------------------------------------------------------------- Jenkinsfile | 126 ------------------------------------------------------- 1 file changed, 126 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven/blob/dc7e2c62/Jenkinsfile ---------------------------------------------------------------------- diff --git a/Jenkinsfile b/Jenkinsfile index 2ac2644..9111e01 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,130 +19,4 @@ properties([buildDiscarder(logRotator(artifactNumToKeepStr: '5', numToKeepStr: env.BRANCH_NAME=='master'?'10':'5'))]) -def tests - -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" - } - dir ('apache-maven/target') { - sh "mv apache-maven-*-bin.zip apache-maven-dist.zip" - stash includes: 'apache-maven-dist.zip', name: 'dist' - } - junit allowEmptyResults: true, testResults:'**/target/*-reports/*.xml' - tests = resolveScm source: [$class: 'GitSCMSource', credentialsId: '', excludes: '', gitTool: 'Default', id: '_', ignoreOnPushNotifications: false, includes: '*', remote: 'https://git-wip-us.apache.org/repos/asf/maven-integration-testing.git'], targets: [BRANCH_NAME, 'master'] - } -} - -stage 'Integration Test' -parallel linuxJava7:{ - node('ubuntu') { - def MAVEN_NIX_J7=tool name: 'Maven 3.3.9', type: 'hudson.tasks.Maven$MavenInstallation' - echo "Driving integration tests using Maven $MAVEN_NIX_J7" - def JAVA_NIX_J7=tool name: 'JDK 1.7 (latest)', type: 'hudson.model.JDK' - echo "Running integration tests with Java $JAVA_NIX_J7" - dir('test') { - def WORK_DIR=pwd() - checkout tests - sh "rm -rvf $WORK_DIR/apache-maven-dist.zip $WORK_DIR/it-local-repo" - unstash 'dist' - withEnv(["PATH+MAVEN=$MAVEN_NIX_J7/bin","PATH+JDK=$JAVA_NIX_J7/bin"]) { - sh "mvn clean install -Prun-its -B -U -V -Dmaven.test.failure.ignore=true -Dmaven.repo.local=$WORK_DIR/it-local-repo -DmavenDistro=$WORK_DIR/apache-maven-dist.zip" - } - junit allowEmptyResults: true, testResults:'core-it-support/**/target/*-reports/*.xml,core-it-suite/target/*-reports/*.xml' - deleteDir() // clean up after ourselves to reduce disk space - } - } - },linuxJava8: { - node('ubuntu') { - def MAVEN_NIX_J8=tool name: 'Maven 3.3.9', type: 'hudson.tasks.Maven$MavenInstallation' - echo "Driving integration tests using Maven $MAVEN_NIX_J8" - def JAVA_NIX_J8=tool name: 'JDK 1.8 (latest)', type: 'hudson.model.JDK' - echo "Running integration tests with Java $JAVA_NIX_J8" - dir('test') { - def WORK_DIR=pwd() - checkout tests - sh "rm -rvf $WORK_DIR/apache-maven-dist.zip $WORK_DIR/it-local-repo" - unstash 'dist' - withEnv(["PATH+MAVEN=$MAVEN_NIX_J8/bin","PATH+JDK=$JAVA_NIX_J8/bin"]) { - sh "mvn clean install -Prun-its -B -U -V -Dmaven.test.failure.ignore=true -Dmaven.repo.local=$WORK_DIR/it-local-repo -DmavenDistro=$WORK_DIR/apache-maven-dist.zip" - } - junit allowEmptyResults: true, testResults:'core-it-support/**/target/*-reports/*.xml,core-it-suite/target/*-reports/*.xml' - deleteDir() // clean up after ourselves to reduce disk space - } - } - }, winJava7: { - node('Windows') { - def MAVEN_WIN_J7=tool name: 'Maven 3.3.9 (Windows)', type: 'hudson.tasks.Maven$MavenInstallation' - dir(MAVEN_WIN_J7) { - MAVEN_WIN_J7=pwd() - } - echo "Driving integration tests using Maven $MAVEN_WIN_J7" - def JAVA_WIN_J7=tool name: 'JDK 1.7 (unlimited security) 64-bit Windows only', type: 'hudson.model.JDK' - dir(JAVA_WIN_J7) { - JAVA_WIN_J7=pwd() - } - echo "Running integration tests with Java $JAVA_WIN_J7" - // need a short path or we hit 256 character limit for paths - // using EXECUTOR_NUMBER guarantees that concurrent builds on same agent - // will not trample each other - dir("/mvn-it-${EXECUTOR_NUMBER}.tmp") { - def WORK_DIR=pwd() - checkout tests - bat "if exist it-local-repo rmdir /s /q it-local-repo" - bat "if exist apache-maven-dist.zip del /q apache-maven-dist.zip" - withEnv(["Path+MAVEN=$MAVEN_WIN_J7\\bin","Path+JDK=$JAVA_WIN_J7\\bin","JAVA_HOME=$JAVA_WIN_J7"]) { - bat "set" - unstash 'dist' - bat "mvn clean install -Prun-its -B -U -V -Dmaven.test.failure.ignore=true -Dmaven.repo.local=$WORK_DIR/it-local-repo -DmavenDistro=$WORK_DIR/apache-maven-dist.zip" - } - junit allowEmptyResults: true, testResults:'core-it-support/**/target/*-reports/*.xml,core-it-suite/target/*-reports/*.xml' - deleteDir() // clean up after ourselves to reduce disk space - } - } - }, winJava8: { - node('Windows') { - def MAVEN_WIN_J8=tool name: 'Maven 3.3.9 (Windows)', type: 'hudson.tasks.Maven$MavenInstallation' - dir(MAVEN_WIN_J8) { - MAVEN_WIN_J8=pwd() - } - echo "Driving integration tests using Maven $MAVEN_WIN_J8" - def JAVA_WIN_J8=tool name: 'JDK 1.8 (unlimited security) 64-bit Windows only', type: 'hudson.model.JDK' - dir(JAVA_WIN_J8) { - JAVA_WIN_J8=pwd() - } - echo "Running integration tests with Java $JAVA_WIN_J8" - // need a short path or we hit 256 character limit for paths - // using EXECUTOR_NUMBER guarantees that concurrent builds on same agent - // will not trample each other - dir("/mvn-it-${EXECUTOR_NUMBER}.tmp") { - def WORK_DIR=pwd() - checkout tests - bat "if exist it-local-repo rmdir /s /q it-local-repo" - bat "if exist apache-maven-dist.zip del /q apache-maven-dist.zip" - withEnv(["Path+MAVEN=$MAVEN_WIN_J8\\bin","Path+JDK=$JAVA_WIN_J8\\bin","JAVA_HOME=$JAVA_WIN_J8"]) { - bat "set" - unstash 'dist' - bat "mvn clean install -Prun-its -B -U -V -Dmaven.test.failure.ignore=true -Dmaven.repo.local=$WORK_DIR/it-local-repo -DmavenDistro=$WORK_DIR/apache-maven-dist.zip" - } - junit allowEmptyResults: true, testResults:'core-it-support/**/target/*-reports/*.xml,core-it-suite/target/*-reports/*.xml' - deleteDir() // clean up after ourselves to reduce disk space - } - } - } -} finally { - node('ubuntu') { - emailext body: "See ${env.BUILD_URL}", recipientProviders: [[$class: 'CulpritsRecipientProvider'], [$class: 'FailingTestSuspectsRecipientProvider'], [$class: 'FirstFailingBuildSuspectsRecipientProvider']], replyTo: 'dev@maven.apache.org', subject: "${env.JOB_NAME} - build ${env.BUILD_DISPLAY_NAME} - ${currentBuild.result}", to: 'notifications@maven.apache.org' - } -}