调整分支过滤器默认值
This commit is contained in:
parent
782497f4d3
commit
3480535e96
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue