Remove the specified version of jenkins plugin scm-api

Signed-off-by: rick <rick@jenkins-zh.cn>
This commit is contained in:
rick
2020-12-09 13:41:01 +08:00
parent 0b4ed3f8c8
commit e4782b37f0
5 changed files with 6 additions and 5 deletions

View File

@@ -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