From 3480535e96e252e122bf6b0891177485d135f931 Mon Sep 17 00:00:00 2001 From: yashin Date: Wed, 11 Jul 2018 16:06:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=88=86=E6=94=AF=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E5=99=A8=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/main/java/com/gitee/jenkins/trigger/GiteePushTrigger.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index cbd1cb7..0701497 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ gitee-jenkins-plugin - 1.0.7.1-SNAPSHOT + 1.0.8-SNAPSHOT Gitee Jenkins Plugin https://wiki.jenkins-ci.org/display/JENKINS/Gitee+Jenkins+Plugin hpi diff --git a/src/main/java/com/gitee/jenkins/trigger/GiteePushTrigger.java b/src/main/java/com/gitee/jenkins/trigger/GiteePushTrigger.java index 94efec2..a6ae9f6 100644 --- a/src/main/java/com/gitee/jenkins/trigger/GiteePushTrigger.java +++ b/src/main/java/com/gitee/jenkins/trigger/GiteePushTrigger.java @@ -37,7 +37,6 @@ import jenkins.model.ParameterizedJobMixIn; import jenkins.triggers.SCMTriggerItem.SCMTriggerItems; import net.karneim.pojobuilder.GeneratePojoBuilder; import net.sf.json.JSONObject; -import org.apache.commons.lang.StringUtils; import org.jenkinsci.Symbol; import org.kohsuke.stapler.Ancestor; import org.kohsuke.stapler.AncestorInPath; @@ -466,7 +465,7 @@ public class GiteePushTrigger extends Trigger> { private void initializeBranchFilter() { if (branchFilterType == null) { - branchFilterType = StringUtils.isNotBlank(branchFilterName) ? BranchFilterType.valueOf(branchFilterName) : BranchFilterType.All; + branchFilterType = BranchFilterType.All; } branchFilter = BranchFilterFactory.newBranchFilter(branchFilterConfig()