Just guessing here, but in your “exclusions” combo filter below, it seems like you should be using && instead of || separating the two conditions. Also, not sure if it makes a difference when parsing, but typically there are no spaces around the ==.
So, did you already try this:
!(platform=="b" && board_type=="y") && !(platform=="c" && board_type=="y")
From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com]
On Behalf Of malferns
Sent: Monday, December 22, 2014 1:17 PM
To: jenkins...@googlegroups.com
Subject: EXTERNAL: jenkins conditional matrix - combination filter does not work
I have these axis defined:
platform: a, b, c
mode: m
board_type: x, y
Would like to only build these combinations:
a/x a/y
b/x
c/x
These combos should be excluded:
b/y
c/y
So I created a combination filter (however, this does not work and it builds all the combinations.):
!(platform == "b" && board_type == "y") || !(platform == "c" && board_type == "y")
I finally landed up doing this which works:
(platform=="a") && (board_type=="x") || (platform=="a") && (board_type=="y") || (platform=="b") && (board_type=="x") || (platform=="c") && (board_type=="x")
Would prefer to have the exclusions. Any thoughts?
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/65dcbfa2-9210-4744-9fd4-4c78b7d40fe8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.