提交 e4782b37 编写于 作者: LinuxSuRen's avatar LinuxSuRen

Remove the specified version of jenkins plugin scm-api

Signed-off-by: LinuxSuRen's avatarrick <rick@jenkins-zh.cn>
上级 0b4ed3f8
......@@ -71,7 +71,7 @@ func AppendBitbucketServerSourceToEtree(source *etree.Element, gitSource *devops
}
if gitSource.RegexFilter != "" {
regexTraits := traits.CreateElement("jenkins.scm.impl.trait.RegexSCMHeadFilterTrait")
regexTraits.CreateAttr("plugin", "scm-api@2.4.0")
regexTraits.CreateAttr("plugin", "scm-api")
regexTraits.CreateElement("regex").SetText(gitSource.RegexFilter)
}
return
......
......@@ -48,7 +48,7 @@ func AppendGitSourceToEtree(source *etree.Element, gitSource *devopsv1alpha3.Git
if gitSource.RegexFilter != "" {
regexTraits := traits.CreateElement("jenkins.scm.impl.trait.RegexSCMHeadFilterTrait")
regexTraits.CreateAttr("plugin", "scm-api@2.4.0")
regexTraits.CreateAttr("plugin", "scm-api")
regexTraits.CreateElement("regex").SetText(gitSource.RegexFilter)
}
return
......
......@@ -66,7 +66,7 @@ func AppendGithubSourceToEtree(source *etree.Element, githubSource *devopsv1alph
}
if githubSource.RegexFilter != "" {
regexTraits := traits.CreateElement("jenkins.scm.impl.trait.RegexSCMHeadFilterTrait")
regexTraits.CreateAttr("plugin", "scm-api@2.4.0")
regexTraits.CreateAttr("plugin", "scm-api")
regexTraits.CreateElement("regex").SetText(githubSource.RegexFilter)
}
return
......
......@@ -65,7 +65,7 @@ func AppendGitlabSourceToEtree(source *etree.Element, gitSource *devopsv1alpha3.
}
if gitSource.RegexFilter != "" {
regexTraits := traits.CreateElement("jenkins.scm.impl.trait.RegexSCMHeadFilterTrait")
regexTraits.CreateAttr("plugin", "scm-api@2.4.0")
regexTraits.CreateAttr("plugin", "scm-api")
regexTraits.CreateElement("regex").SetText(gitSource.RegexFilter)
}
return
......
......@@ -7,6 +7,7 @@ const (
PRDiscoverTrustEveryone PRDiscoverTrust = 2
PRDiscoverTrustPermission PRDiscoverTrust = 3
PRDiscoverTrustNobody PRDiscoverTrust = 4
PRDiscoverUnknown PRDiscoverTrust = -1
)
type GitHubPRDiscoverTrust int
......@@ -44,7 +45,7 @@ func (p PRDiscoverTrust) ParseFromString(prTrust string) PRDiscoverTrust {
case "TrustNobody":
return PRDiscoverTrustNobody
default:
return -1
return PRDiscoverUnknown
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册