This is an automated email from the ASF dual-hosted git repository.

martin_s pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/archiva-redback-components-parent.git


The following commit(s) were added to refs/heads/master by this push:
     new c0bdcf1  Jenkinsfile modifications
c0bdcf1 is described below

commit c0bdcf1e6667e0f3c9f8d9c6bb0f8ba625669415
Author: Martin Stockhammer <[email protected]>
AuthorDate: Tue Apr 17 19:12:50 2018 +0200

    Jenkinsfile modifications
---
 Jenkinsfile | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index f5002c7..0d3035f 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -18,6 +18,7 @@
  */
 /**
  *
+ *
  * Jenkins Pipeline configuration.
  *
  */
@@ -29,18 +30,20 @@ def deploySettings = 
'DefaultMavenSettingsProvider.1331204114925'
 
 node(labels) {
 
+    cleanWs()
+
     stage ('Clone Sources') {
-        git url: 
'https://gitbox.apache.org/repos/asf/archiva-redback-components-parent.git'
+        checkout scm
     }
 
     stage ('Build') {
         withMaven(
                 maven: buildMvn,
-                jdk: buildJdk
+                jdk: buildJdk,
+                mavenSettingsConfig: deploySettings
         ) {
-            // Run the maven build
             sh "mvn clean install -B -U -e -fae -Dmaven.compiler.fork=false"
-        } // withMaven will discover the generated Maven artifacts, JUnit 
Surefire & FailSafe & FindBugs reports...
+        } 
     }
 
     stage ('Deploy') {
@@ -49,8 +52,7 @@ node(labels) {
                 jdk: buildJdk,
                 mavenSettingsConfig: deploySettings
         ) {
-            // Run the maven build
-            sh "mvn clean deploy -Dmaven.test.skip=true -B -U -e -fae 
-Dmaven.compiler.fork=false"
-        } // withMaven will discover the generated Maven artifacts, JUnit 
Surefire & FailSafe & FindBugs reports...
+            sh "mvn deploy -Dmaven.test.skip=true -B -U -e -fae 
-Dmaven.compiler.fork=false"
+        }
     }
-}
\ No newline at end of file
+}

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to