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

orpiske pushed a commit to branch devel-camel-20383
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/devel-camel-20383 by this push:
     new f875725dd46 More small fixes
f875725dd46 is described below

commit f875725dd46dafbd5124d2340498f159374aa6e7
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Fri Apr 5 11:45:32 2024 +0200

    More small fixes
---
 Jenkinsfile.matrix.platform | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/Jenkinsfile.matrix.platform b/Jenkinsfile.matrix.platform
index 28831ac0a94..7dabd12ea7b 100644
--- a/Jenkinsfile.matrix.platform
+++ b/Jenkinsfile.matrix.platform
@@ -41,10 +41,10 @@ pipeline {
     }
 
     parameters {
-        booleanParam(name: 'CLEAN', defaultValue: true, description: 'Perform 
the build in clean workspace'),
-        booleanParam(name: 'VIRTUAL_THREAD', defaultValue: false, description: 
'Perform the build using virtual threads'),
-        choice(name: 'PLATFORM_FILTER', choices: ['all', 'ppc64le', 's390x', 
'ubuntu'], description: 'Run on specific platform'),
-        choice(name: 'JDK_FILTER', choices: ['all', 'jdk_17_latest', 
'jdk_21_latest'], description: 'Run on specific jdk'),
+        booleanParam(name: 'CLEAN', defaultValue: true, description: 'Perform 
the build in clean workspace')
+        booleanParam(name: 'VIRTUAL_THREAD', defaultValue: false, description: 
'Perform the build using virtual threads on JDK 21 and newer')
+        choice(name: 'PLATFORM_FILTER', choices: ['all', 'ppc64le', 's390x', 
'ubuntu'], description: 'Run on specific platform')
+        choice(name: 'JDK_FILTER', choices: ['all', 'jdk_17_latest', 
'jdk_21_latest'], description: 'Run on specific jdk')
     }
     agent none
     stages {
@@ -53,12 +53,14 @@ pipeline {
                 agent {
                     label ${PLATFORM}
                 }
-                when { anyOf {
-                    expression { params.PLATFORM_FILTER == 'all' }
-                    expression { params.PLATFORM_FILTER == env.PLATFORM }
-                    expression { params.JDK_FILTER == 'all' }
-                    expression { params.JDK_FILTER == env.JDK_NAME }
-                } }
+                when {
+                    anyOf {
+                        expression { params.PLATFORM_FILTER == 'all' }
+                        expression { params.PLATFORM_FILTER == env.PLATFORM }
+                        expression { params.JDK_FILTER == 'all' }
+                        expression { params.JDK_FILTER == env.JDK_NAME }
+                    }
+                }
                 axes {
                     axis {
                         name 'JDK_NAME'

Reply via email to