MatrixProject mp = createMatrixProject("xyz");
mp.setAxes(new AxisList(new Axis("VAR", "a", "b")));
mp.setScm(new GitSCM(workDir.getAbsolutePath()));
mp.addPublisher(new GitPublisher(
Collections.singletonList(new TagToPush("origin", "foo", true)),
Collections.<BranchToPush>emptyList(), true, true) {
@Override
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener)
throws InterruptedException {
run[0]++;