use of com.offbytwo.jenkins.model.QueueReference in project fabric8 by fabric8io.
the class JenkinsAsserts method assertTriggerJobPath.
/**
* Asserts that we can trigger the job defined by the given path
*/
public static QueueReference assertTriggerJobPath(JenkinsServer jenkins, String... jobPath) throws IOException {
JobWithDetails jobWithDetails = assertJobPathExists(jenkins, jobPath);
QueueReference build = jobWithDetails.build(true);
assertNotNull("No build reference for job " + fullJobPath(jobPath), build != null);
return build;
}
Aggregations