The groovy script executed by Groovy Postbuild does not run on Matrix
parent if this Post build publisher comes from a template project.
There is an issue for this:
https://issues.jenkins-ci.org/browse/JENKINS-27317
I order for the script to run on my several hundred jobs I would have to
I came by an immediate fix:
Using this Groovy Postbuild script on all my jobs
import hudson.matrix.MatrixBuild;
import hudson.matrix.MatrixRun;
if (manager.buildIsA(MatrixBuild.class)) {
evaluate(new File(build-downstream-projects.groovy))
}
A little bit duplication, but the main logic