Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #237 from jglick/HeadByItem-JENKINS-30595
Browse files Browse the repository at this point in the history
[JENKINS-30595] Tested API
  • Loading branch information
jglick committed Nov 3, 2015
2 parents 8803a3e + 0327823 commit 1b83632
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -34,6 +34,7 @@
import jenkins.branch.BranchSource;
import jenkins.branch.DefaultBranchPropertyStrategy;
import jenkins.plugins.git.GitSCMSource;
import jenkins.scm.api.SCMHead;
import jenkins.scm.api.SCMSource;
import org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval;
import org.jenkinsci.plugins.workflow.job.WorkflowJob;
Expand Down Expand Up @@ -64,6 +65,7 @@ public class WorkflowMultiBranchProjectTest {
assertEquals(mp, source.getOwner());
}
WorkflowJob p = scheduleAndFindBranchProject(mp, "master");
assertEquals(new SCMHead("master"), SCMHead.HeadByItem.findHead(p));
assertEquals(1, mp.getItems().size());
r.waitUntilNoActivity();
WorkflowRun b1 = p.getLastBuild();
Expand Down

0 comments on commit 1b83632

Please sign in to comment.