Implemented basic support for Matrix projects.

[JENKINS-15396]