Search in sources :

Example 11 with JobWithDetails

use of com.offbytwo.jenkins.model.JobWithDetails in project fabric8 by fabric8io.

the class JenkinsAsserts method assertJobHasBuild.

public static Build assertJobHasBuild(JenkinsServer jenkins, String jobName) {
    JobWithDetails job = assertJobExists(jenkins, jobName);
    Build lastBuild = job.getLastBuild();
    assertNotNull("No lastBuild for job `" + jobName + "`", lastBuild);
    return lastBuild;
}
Also used : Build(com.offbytwo.jenkins.model.Build) JobWithDetails(com.offbytwo.jenkins.model.JobWithDetails)

Aggregations

JobWithDetails (com.offbytwo.jenkins.model.JobWithDetails)11 Build (com.offbytwo.jenkins.model.Build)3 FolderJob (com.offbytwo.jenkins.model.FolderJob)3 Job (com.offbytwo.jenkins.model.Job)3 BuildWithDetails (com.offbytwo.jenkins.model.BuildWithDetails)2 Properties (java.util.Properties)2 JenkinsServer (com.offbytwo.jenkins.JenkinsServer)1 Artifact (com.offbytwo.jenkins.model.Artifact)1 QueueReference (com.offbytwo.jenkins.model.QueueReference)1 Block (io.fabric8.utils.Block)1 IOException (java.io.IOException)1 URI (java.net.URI)1 URISyntaxException (java.net.URISyntaxException)1 Map (java.util.Map)1 TimeoutException (java.util.concurrent.TimeoutException)1 AtomicReference (java.util.concurrent.atomic.AtomicReference)1 Git (org.eclipse.jgit.api.Git)1 Status (org.eclipse.jgit.api.Status)1 DirCache (org.eclipse.jgit.dircache.DirCache)1 StoredConfig (org.eclipse.jgit.lib.StoredConfig)1