调整分支过滤器默认值

This commit is contained in:
yashin 2018-07-11 16:06:45 +08:00
parent 782497f4d3
commit 3480535e96
2 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,7 @@
</properties>
<artifactId>gitee-jenkins-plugin</artifactId>
<version>1.0.7.1-SNAPSHOT</version>
<version>1.0.8-SNAPSHOT</version>
<name>Gitee Jenkins Plugin</name>
<url>https://wiki.jenkins-ci.org/display/JENKINS/Gitee+Jenkins+Plugin</url>
<packaging>hpi</packaging>

View File

@ -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<Job<?, ?>> {
private void initializeBranchFilter() {
if (branchFilterType == null) {
branchFilterType = StringUtils.isNotBlank(branchFilterName) ? BranchFilterType.valueOf(branchFilterName) : BranchFilterType.All;
branchFilterType = BranchFilterType.All;
}
branchFilter = BranchFilterFactory.newBranchFilter(branchFilterConfig()