Gitlab-plugin: about "Filter branches by regex"

Created on 19 Sep 2019  路  2Comments  路  Source: jenkinsci/gitlab-plugin

I need to use "Filter branches by regex" in "branchFilterType". How do I use parameters to define "Filter branches by regex" and "Target Branch Regex"?

It seems that there is a "RegexBasedFilter" corresponding to "Filter branches by regex"? But "Target Branch Regex" was not found.

Most helpful comment

After testing, I found that the syntax rules for using regular filtering branches in pipeline are as follows:

triggers{
    gitlab( triggerOnPush: true,
    triggerOnMergeRequest: true,
    branchFilterType: "RegexBasedFilter",
    sourceBranchRegex: "test.*",
    secretToken: "${env.git_token}")
}

All 2 comments

I have the same doubts about this issue.

After testing, I found that the syntax rules for using regular filtering branches in pipeline are as follows:

triggers{
    gitlab( triggerOnPush: true,
    triggerOnMergeRequest: true,
    branchFilterType: "RegexBasedFilter",
    sourceBranchRegex: "test.*",
    secretToken: "${env.git_token}")
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

almozavr picture almozavr  路  6Comments

salashnik picture salashnik  路  3Comments

MarcelNehring picture MarcelNehring  路  5Comments

ffrddrll picture ffrddrll  路  6Comments

nussera picture nussera  路  5Comments