Always replace {branch} and replace / with _

Review Request #11758 — Created July 29, 2021 and submitted — Latest diff uploaded

Information

rbintegrations
release-2.0.x

Reviewers

{branch} shouldn't be a Git-only variable. Any version system
can use this.

If a repository name contains / we need to convert it into
another character because Jenkins do not allow / as a job name.
So let's use _ as a replacement.

Configured a jenkins integration with job name {branch}_{repository}.
The repository name contains multiple /. Started a review request
and saw that it correctly started a job with replaced names.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Always replace {branch} and replace / with _
{branch} shouldn't be a Git-only variable. Any version system can use this. If a repository name contains / we need to convert it into another character because Jenkins do not allow / as a job name. So let's use _ as a replacement.
1269e9c6316f5ecd154dff675cca74d820f41ada André Klitzing
rbintegrations/jenkinsci/integration.py
Loading...