You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2019/08/29 06:45:02 UTC

[struts] branch docker-build updated: Defines JDK's related env variables

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

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


The following commit(s) were added to refs/heads/docker-build by this push:
     new 657512f  Defines JDK's related env variables
657512f is described below

commit 657512f5df79c23031c53b1f28ced38f1caffa2c
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Thu Aug 29 08:44:20 2019 +0200

    Defines JDK's related env variables
---
 Jenkinsfile | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 2b811db..832fa99 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,6 +1,10 @@
 #!groovy
 pipeline {
-  agent none
+  agent {
+    node {
+      label 'ubuntu'
+    }
+  }
   options {
     buildDiscarder logRotator(daysToKeepStr: '14', numToKeepStr: '10')
     timeout(80)
@@ -8,7 +12,6 @@ pipeline {
   }
   tools {
     jdk 'JDK 1.8 (latest)'
-    maven 'Maven 3 (latest)'
   }
   triggers {
     pollSCM 'H/15 * * * *'
@@ -22,9 +25,13 @@ pipeline {
         docker {
           image 'maven:3-alpine'
           args '-v $HOME/.m2:/root/.m2'
+          args '-e JAVA_HOME=$JAVA_HOME'
+          args '-e MAVEN_OPTS=$MAVEN_OPTS'
         }
       }
       steps {
+        sh 'echo $JAVA_HOME'
+        sh 'echo $MAVEN_OPTS'
         sh 'mvn -v'
         sh 'mvn clean test -DskipWiki'
       }