public String getPipelineName() {
        if(isBuilding()) {
            return buildLocator.split("/")[0];
        }
        return null;
    }
@Test
    public void shouldReturnThePipelineName() {
        AgentBuildingInfo agentBuildingInfo = new AgentBuildingInfo("buildInfo", "foo");
        assertThat(agentBuildingInfo.getPipelineName(), is("foo"));
    }