Comments from the pull request
This should not be evaluated here as the MatrixSubsetAction filter should be referring to the triggered matrix project, so in most cases this will return false as the AXIS that the matrix project has will not be available which are the normal cases for checking.
So it can only reliably be checked in the Matrix project build.
Actual evaluation takes place in the Matrix build in
https://github.com/jenkinsci/parameterized-trigger-plugin/blob/master/src/main/java/hudson/plugins/parameterizedtrigger/matrix/MatrixBuildListenerImpl.java
Thanks but for the evaluation, this Class is not called during the process.
Should be called from DefaultMatrixExecutionStrategyImpl.java in a Matrix project from the static function in the hudson.matrix.listeners.MatrixBuildListener class.
https://github.com/jenkinsci/jenkins/blob/6d95e3680c8edf49c2353633dd9c1a7072440989/core/src/main/java/hudson/matrix/DefaultMatrixExecutionStrategyImpl.java#L123
Sure but in my case, I have a freestyle project with a parameterized trigger configurations in post-build action to determine which build to launch next. I have to evaluate the Groovy filter which is never done in that case.
Here is my pull request [1] and the BuildHive result [2].
[1]: https://github.com/jenkinsci/parameterized-trigger-plugin/pull/37
[2]: https://buildhive.cloudbees.com/job/jenkinsci/job/parameterized-trigger-plugin/47/