Skip to content

Commit

Permalink
[JENKINS-30206] Fixed branch property propagation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed May 25, 2016
1 parent 882717d commit 18077ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Expand Up @@ -59,7 +59,7 @@ public class WorkflowBranchProjectFactory extends BranchProjectFactory<WorkflowJ
try {
if (property == null) {
project.addProperty(new BranchJobProperty(branch));
} else if (!property.getBranch().equals(branch)) {
} else { // TODO may add equality check if https://github.com/jenkinsci/branch-api-plugin/pull/36 or equivalent is implemented
property.setBranch(branch);
project.save();
}
Expand Down
Expand Up @@ -40,7 +40,6 @@
import org.jenkinsci.plugins.workflow.steps.scm.GitSampleRepoRule;
import org.junit.Test;
import static org.junit.Assert.*;
import org.junit.Ignore;
import org.junit.Rule;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;
Expand All @@ -54,7 +53,6 @@ public class NoTriggerBranchPropertyWorkflowTest {
@Rule public JenkinsRule r = new JenkinsRule();
@Rule public GitSampleRepoRule sampleRepo = new GitSampleRepoRule();

@Ignore("fails: master gets build 4")
@Issue("JENKINS-30206")
@Test public void singleRepo() throws Exception {
round1();
Expand Down

0 comments on commit 18077ec

Please sign in to comment.