[FIXED JENKINS-21646] fix ClassCastException with MavenModuleSetBuild

The multijob plugin fails with a `ClassCastException` if a phase contains a maven project job.
This PR fixes the issue by using `AbstractBuild`instead of `Build`