struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [struts] branch master updated: Extract commons docker args into a var
Date Tue, 11 Feb 2020 07:53:25 GMT
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/struts.git


The following commit(s) were added to refs/heads/master by this push:
     new 5cc73a6  Extract commons docker args into a var
5cc73a6 is described below

commit 5cc73a67caf7807d9bcdbd5ccf991a496aff3ad0
Author: Lukasz Lenart <lukaszlenart@apache.org>
AuthorDate: Tue Feb 11 08:53:18 2020 +0100

    Extract commons docker args into a var
---
 Jenkinsfile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 37e499e..688aa95 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,4 +1,7 @@
 #!groovy
+
+dockerArgs = '-v $HOME/.m2:/root/.m2 -e MAVEN_OPTS="-Xmx1024m" -e USER=root -u root'
+
 pipeline {
   agent none
   options {
@@ -18,7 +21,7 @@ pipeline {
             docker {
               label 'ubuntu'
               image 'maven:3-jdk-11'
-              args '-v $HOME/.m2:/root/.m2 -e MAVEN_OPTS="-Xmx1024m" -e USER=$USER'
+              args "$dockerArgs"
               reuseNode true
             }
           }
@@ -47,7 +50,7 @@ pipeline {
             docker {
               label 'ubuntu'
               image 'maven:3-jdk-9'
-              args '-v $HOME/.m2:/root/.m2 -e MAVEN_OPTS="-Xmx1024m" -e USER=$USER'
+              args "$dockerArgs"
               reuseNode true
             }
           }
@@ -76,7 +79,7 @@ pipeline {
             docker {
               label 'ubuntu'
               image 'maven:3-jdk-8'
-              args '-v $HOME/.m2:/root/.m2 -e MAVEN_OPTS="-Xmx1024m" -e USER=$USER'
+              args "$dockerArgs"
               reuseNode true
             }
           }


Mime
View raw message