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-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f1c8b3  define the pipeline here
6f1c8b3 is described below

commit 6f1c8b325a9e454c9f3347b9901b34857f0ebbc4
Author: olivier lamy <[email protected]>
AuthorDate: Sat Dec 29 14:36:36 2018 +1000

    define the pipeline here
    
    Signed-off-by: olivier lamy <[email protected]>
---
 vars/asfStandardBuild.groovy | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/vars/asfStandardBuild.groovy b/vars/asfStandardBuild.groovy
index 989c695..b2617c3 100644
--- a/vars/asfStandardBuild.groovy
+++ b/vars/asfStandardBuild.groovy
@@ -32,7 +32,19 @@ def call(Map params = [:]) {
   def mvnName = params.containsKey('mvnName') ? params.mvnName : 'Maven 3.5.2'
   def publishers = params.containsKey('publishers') ? params.publishers : []
 
-  mavenBuild( jdk, cmdline, mvnName, publishers)
+
+  pipeline {
+    agent any
+    stages{
+      stage("Build"){
+        agent { node { label 'ubuntu' } }
+        options { timeout(time: 120, unit: 'MINUTES') }
+        steps{
+          mavenBuild( jdk, cmdline, mvnName, publishers)
+        }
+      }
+    }
+  }
 
 }
 
@@ -48,7 +60,7 @@ def call(Map params = [:]) {
  * @return the Jenkinsfile step representing a maven build
  */
 def mavenBuild(jdk, cmdline, mvnName, publishers) {
-  def localRepo = ".repository" // 
"${env.JENKINS_HOME}/${env.EXECUTOR_NUMBER}" //
+  def localRepo = "${env.JENKINS_HOME}/${env.EXECUTOR_NUMBER}" //
   def settingsName = 'archiva-uid-jenkins'
   def mavenOpts = '-Xms1g -Xmx4g -Djava.awt.headless=true'
 

Reply via email to