Project<?,?> projectA = createFreeStyleProject();
Project projectB = createFreeStyleProject();
projectA.getBuildersList().add(
new TriggerBuilder(
new BlockableBuildTriggerConfig(projectB.getName(),
new BlockingBehaviour(Result.FAILURE, Result.UNSTABLE, Result.FAILURE),
ImmutableList.<AbstractBuildParameterFactory>of(
new CounterBuildParameterFactory("0","1","1", "TEST=COUNT$COUNT"),
new CounterBuildParameterFactory("0","2","1", "NEWTEST=COUNT$COUNT")
),
Collections.<AbstractBuildParameters>emptyList())));