Ignore a parameter with Matrix builds ?


I'm testing Matrix build, it seems to work fine. However, I have a situation that I'd like to solve the cleanest way, and I'm not sure how to do it.

I have a matrix build test, with parameters os (Linux, Windows) and arch (x86, x64). But in fact I don't want to build for Linux x86, only for Windows.
I see 2 options, have 2 different builds, for Linux and Windows, not so interesting. Or run the build Linux x86 but then not do anything in my scripts to abort it.

Is there something better to do?



Trying with Parameter-based execution condition is not working, these are just ignored.


The Matrix Build feature is designed to run builds for every combination of specified parameters, and the exclusion of one or multiple combinations is not currently supported. Please see https://youtrack.jetbrains.com/issue/TW-84312/Matrix-builds-Allow-to-exclude-parameter-combinations-run-subset-of-matrix-parameters for more details. 

The options you found seem to be the best way to ignore one combination. Just to add to it, when setting up a separate build configuration for Linux, you can create a composite build that has a dependency on both the matrix build and Linux build to have the results in one place.

Best regards,

Please sign in to leave a comment.