reuse the jenkins api some more