If checked, the post build script runs also for parent builds of the multi-configuration project.

The code to check whether that run is for a parent build or a child build is like this: import hudson.matrix.MatrixBuild; import hudson.matrix.MatrixRun; if (manager.buildIsA(MatrixBuild.class)) { // codes for matrix parents. } else if (manager.buildIsA(MatrixRun.class)) { // codes for matrix children. }