Search in sources :

Example 1 with QueueReference

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;
}
Also used : QueueReference(com.offbytwo.jenkins.model.QueueReference) JobWithDetails(com.offbytwo.jenkins.model.JobWithDetails)

Aggregations

JobWithDetails (com.offbytwo.jenkins.model.JobWithDetails)1 QueueReference (com.offbytwo.jenkins.model.QueueReference)1