Skip to content

Commit

Permalink
Run Apply when ConditionalApplyPlugin disabled even if branch not known
Browse files Browse the repository at this point in the history
  • Loading branch information
kmanning committed Feb 12, 2021
1 parent 50afa98 commit 91d41d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/ConditionalApplyPluginTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ class ConditionalApplyPluginTest {
assertTrue(plugin.shouldApply())
}

/*
void returnsTrueWhenBranchIsUnknown() {
ConditionalApplyPlugin.disable()
MockJenkinsfile.withEnv()
def plugin = new ConditionalApplyPlugin()

assertTrue(plugin.shouldApply())
}
*/
}
}
}
Expand Down

0 comments on commit 91d41d3

Please sign in to comment.