maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From steph...@apache.org
Subject maven-resolver git commit: Add Jenkinsfile [Forced Update!]
Date Sun, 15 Jan 2017 20:48:28 GMT
Repository: maven-resolver
Updated Branches:
  refs/heads/jenkinsfile 25d1e9663 -> dafc4bcaf (forced update)


Add 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/dafc4bca
Tree: http://git-wip-us.apache.org/repos/asf/maven-resolver/tree/dafc4bca
Diff: http://git-wip-us.apache.org/repos/asf/maven-resolver/diff/dafc4bca

Branch: refs/heads/jenkinsfile
Commit: dafc4bcaf69376b1001d558887cc5dad3d8299bb
Parents: 8bd8c53
Author: Stephen Connolly <stephen.alan.connolly@gmail.com>
Authored: Sun Jan 15 20:41:01 2017 +0000
Committer: Stephen Connolly <stephen.alan.connolly@gmail.com>
Committed: Sun Jan 15 20:48:21 2017 +0000

----------------------------------------------------------------------
 Jenkinsfile | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-resolver/blob/dafc4bca/Jenkinsfile
----------------------------------------------------------------------
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..e843069
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,43 @@
+/*
+ * 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'))])
+
+node('ubuntu') {
+    try {
+        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
+            }
+        stage('Build/Test')
+            dir('build') {
+                def WORK_DIR=pwd()
+                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 {
+        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'
+    }
+}


Mime
View raw message