archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marti...@apache.org
Subject [archiva-redback-components-parent] branch master updated: Adding pipeline constant declarations
Date Sun, 15 Apr 2018 20:38:30 GMT
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 3440d16  Adding pipeline constant declarations
3440d16 is described below

commit 3440d163b507c5f0cf04ccbd211cc73888ecdaa3
Author: Martin Stockhammer <m.stockhammer@web.de>
AuthorDate: Sun Apr 15 22:38:28 2018 +0200

    Adding pipeline constant declarations
---
 Jenkinsfile | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index ecb7717..f5002c7 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -21,33 +21,36 @@
  * Jenkins Pipeline configuration.
  *
  */
-node('ubuntu') {
 
-    stage ('Clone Sources') {
+def labels = 'ubuntu'
+def buildJdk = 'JDK 1.8 (latest)'
+def buildMvn = 'Maven 3.5.2'
+def deploySettings = 'DefaultMavenSettingsProvider.1331204114925'
 
-        git url: 'https://gitbox.apache.org/repos/asf/archiva-redback-components-parent.git'
+node(labels) {
 
+    stage ('Clone Sources') {
+        git url: 'https://gitbox.apache.org/repos/asf/archiva-redback-components-parent.git'
     }
 
     stage ('Build') {
         withMaven(
-                // Maven installation declared in the Jenkins "Global Tool Configuration"
-                maven: 'Maven 3.5.2', jdk: 'JDK 1.8 (latest)') {
+                maven: buildMvn,
+                jdk: buildJdk
+        ) {
             // 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') {
         withMaven(
-                maven: 'Maven 3.5.2',
-                jdk: 'JDK 1.8 (latest)',
-                mavenSettingsConfig: 'DefaultMavenSettingsProvider.1331204114925'
+                maven: buildMvn,
+                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...
     }
 }
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
martin_s@apache.org.

Mime
View raw message