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: Stops using docker
Date Thu, 13 Feb 2020 07:04:44 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 306def2  Stops using docker
306def2 is described below

commit 306def251090d61e6049f1f4f51bb3f386d75dca
Author: Lukasz Lenart <lukaszlenart@apache.org>
AuthorDate: Thu Feb 13 08:04:37 2020 +0100

    Stops using docker
---
 Jenkinsfile | 39 ++++++++++++++++++++++++---------------
 1 file changed, 24 insertions(+), 15 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 6dffe86..5fcc501 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -15,11 +15,14 @@ pipeline {
   stages {
     stage('JDK 11') {
       agent {
-        docker {
-          label 'ubuntu'
-          image 'maven:3-jdk-11'
-          args '-e MAVEN_OPTS="-Xmx1024m" -e USER=$USER'
-        }
+        label 'ubuntu'
+      }
+      tools {
+        jdk 'JDK 11 (latest)'
+        maven 'Maven (latest)'
+      }
+      environment {
+        MAVEN_OPTS = "-Xmx1024m"
       }
       stages {
         stage('Clean Up') {
@@ -48,11 +51,14 @@ pipeline {
     }
     stage('JDK 9') {
       agent {
-        docker {
-          label 'ubuntu'
-          image 'maven:3-jdk-9'
-          args '-v $HOME/.m2:/root/.m2 -e MAVEN_OPTS="-Xmx1024m" -e USER=$USER'
-        }
+        label 'ubuntu'
+      }
+      tools {
+        jdk 'JDK 1.9 (latest)'
+        maven 'Maven (latest)'
+      }
+      environment {
+        MAVEN_OPTS = "-Xmx1024m"
       }
       stages {
         stage('Clean Up') {
@@ -81,11 +87,14 @@ pipeline {
     }
     stage('JDK 8') {
       agent {
-        docker {
-          label 'ubuntu'
-          image 'maven:3-jdk-8'
-          args '-v $HOME/.m2:/root/.m2 -e MAVEN_OPTS="-Xmx1024m" -e USER=$USER'
-        }
+        label 'ubuntu'
+      }
+      tools {
+        jdk 'JDK 1.8 (latest)'
+        maven 'Maven (latest)'
+      }
+      environment {
+        MAVEN_OPTS = "-Xmx1024m"
       }
       stages {
         stage('Clean Up') {


Mime
View raw message