aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorS.Nishio <nishio@densan-labs.net>2014-05-14 19:44:08 +0900
committerS.Nishio <nishio@densan-labs.net>2014-05-14 19:44:08 +0900
commit18dbf64c244df7c0da1558425cb4768085f87a2e (patch)
treeeb44b2fde4008848368d982f92c8963a6157590f /src/main
parent68bf998f6ebf61dcd5b2d9aad765369aeabf714f (diff)
parent80bce00b6cdb418a20b527936da7e04b3d58fa81 (diff)
downloadbbprb-18dbf64c244df7c0da1558425cb4768085f87a2e.tar.gz
Merge pull request #6 from blacha/ciSkip
fixing a bug where if the skipPhrases was empty it would skip every build
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java2
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())) {