pull more functionality out into the jenkins library