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: [email protected] 
[mailto:[email protected]] On Behalf Of malferns
Sent: Monday, December 22, 2014 1:17 PM
To: [email protected]
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/65dcbfa2-9210-4744-9fd4-4c78b7d40fe8%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/65dcbfa2-9210-4744-9fd4-4c78b7d40fe8%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7D95357C70BD6A41A88ECBC6A89849E953792CAB%40HDXDSP51.us.lmco.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to