This is an automated email from the ASF dual-hosted git repository.
olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva.git
The following commit(s) were added to refs/heads/master by this push:
new 81a4493 simplify
81a4493 is described below
commit 81a4493a4afee773d54b74d1a1ba0a10227d9323
Author: Olivier Lamy <[email protected]>
AuthorDate: Wed Apr 18 14:09:45 2018 +1000
simplify
---
Jenkinsfile | 45 ++++++++++++++++++++-------------------------
1 file changed, 20 insertions(+), 25 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index f8992e7..31c2d55 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,17 +1,14 @@
node ("ubuntu") {
// System Dependent Locations
- def mvntool = tool name: 'Maven 3.5.2', type:
'hudson.tasks.Maven$MavenInstallation'
- def jdktool = tool name: 'JDK 1.8 (latest)', type: 'hudson.model.JDK'
+ def mvn = 'Maven 3.5.2'
+ def jdk ='JDK 1.8 (latest)'
def deploySettings = 'DefaultMavenSettingsProvider.1331204114925'
- // Environment
- List mvnEnv = ["PATH+MVN=${mvntool}/bin", "PATH+JDK=${jdktool}/bin",
"JAVA_HOME=${jdktool}/", "MAVEN_HOME=${mvntool}"]
- mvnEnv.add("MAVEN_OPTS=-Xms256m -Xmx1024m -Djava.awt.headless=true")
-
try
{
- stage 'Checkout'
- checkout scm
+ stage ('Checkout') {
+ checkout scm
+ }
} catch (Exception e) {
//notifyBuild("Checkout Failure")
throw e
@@ -20,23 +17,21 @@ node ("ubuntu") {
try
{
stage ('Build') {
- withEnv(mvnEnv) {
- timeout(120) {
- withMaven(maven: mvntool.name, jdk: jdktool.name,
- globalMavenSettingsConfig: deploySettings,
- mavenLocalRepo:
"${env.JENKINS_HOME}/${env.EXECUTOR_NUMBER}"
- )
- {
- // Run test phase / ignore test failures
- sh "mvn -B clean deploy -Dmaven.test.failure.ignore=true"
- }
- // Report failures in the jenkins UI
- //step([$class: 'JUnitResultArchiver', testResults:
'**/target/surefire-reports/TEST-*.xml'])
- }
- if(isUnstable())
- {
- //notifyBuild("Unstable / Test Errors")
- }
+ timeout(120) {
+ withMaven(maven: mvntool.name, jdk: jdktool.name,
+ globalMavenSettingsConfig: deploySettings,
+ mavenLocalRepo:
"${env.JENKINS_HOME}/${env.EXECUTOR_NUMBER}"
+ )
+ {
+ // Run test phase / ignore test failures
+ sh "mvn -B clean deploy -Dmaven.test.failure.ignore=true"
+ }
+ // Report failures in the jenkins UI
+ //step([$class: 'JUnitResultArchiver', testResults:
'**/target/surefire-reports/TEST-*.xml'])
+ }
+ if(isUnstable())
+ {
+ //notifyBuild("Unstable / Test Errors")
}
}
} catch(Exception e) {
--
To stop receiving notification emails like this one, please contact
[email protected].