diff options
author | Blayne Chard <blacha@aviarc.com> | 2014-05-14 14:20:08 +1200 |
---|---|---|
committer | Blayne Chard <blacha@aviarc.com> | 2014-05-14 14:32:25 +1200 |
commit | 80bce00b6cdb418a20b527936da7e04b3d58fa81 (patch) | |
tree | eb44b2fde4008848368d982f92c8963a6157590f /src | |
parent | 68bf998f6ebf61dcd5b2d9aad765369aeabf714f (diff) | |
download | bbprb-80bce00b6cdb418a20b527936da7e04b3d58fa81.tar.gz |
fixing a bug where if the skipPhrases was empty it would skip every build
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java index 4889dcf..85aa1a8 100644 --- a/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java +++ b/src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java @@ -122,7 +122,7 @@ public class BitbucketRepository { private boolean isSkipBuild(String pullRequestTitle) { String skipPhrases = this.trigger.getCiSkipPhrases(); - if (skipPhrases != null) { + if (skipPhrases != null && !"".equals(skipPhrases)) { String[] phrases = skipPhrases.split(","); for(String phrase : phrases) { if (pullRequestTitle.toLowerCase().contains(phrase.trim().toLowerCase())) { |