You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2018/06/29 13:53:02 UTC

[maven-jenkins-env] branch master updated: regex in switch/case are full match, not partial match

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

rfscholte pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jenkins-env.git


The following commit(s) were added to refs/heads/master by this push:
     new 1210bcc  regex in switch/case are full match, not partial match
1210bcc is described below

commit 1210bccab813e0c3717b959e48d010b45d28c323
Author: rfscholte <rf...@apache.org>
AuthorDate: Fri Jun 29 15:52:55 2018 +0200

    regex in switch/case are full match, not partial match
---
 vars/jenkinsEnv.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vars/jenkinsEnv.groovy b/vars/jenkinsEnv.groovy
index 933620d..51f74a0 100644
--- a/vars/jenkinsEnv.groovy
+++ b/vars/jenkinsEnv.groovy
@@ -102,9 +102,9 @@ class jenkinsEnv implements Serializable {
     }
     def jdkForMaven(String version) {
         switch(version) {
-            case ~/^3\.0\./:
+            case ~/^3\.0\..+/:
                 return '6'
-            case ~/^3\.[235]\./:
+            case ~/^3\.[235]\..+/:
             case '3.x.x':
                 return '7'
             default: