使用Jenkins Build Per Branch将分支传递给作业(Pass branch to job using Jenkins Build Per Branch)

编程入门 行业动态 更新时间:2024-10-27 04:34:09
使用Jenkins Build Per Branch将分支传递给作业(Pass branch to job using Jenkins Build Per Branch)

我能够设置http://entagen.github.io/jenkins-build-per-branch/插件。 所以我现在有一个模板工作,我想在为该功能分支运行作业时为功能分支提取所有更改。

有没有人有想法在模板作业中通过Jenkins的git clone / pull上的功能分支? 据我所知,功能分支名称仅在自动创建的作业名称中可用。

所以我认为我应该找到一种方法来从作业名称中删除分支名称,以便在模板作业中定义的jenkins中的git clone / pull时将其作为参数传递。 有没有人有这方面的工作设置?

I was able to setup the http://entagen.github.io/jenkins-build-per-branch/ plugin. So I have a template job right now and I would like to pull all changes for a feature-branch when the job runs for that feature branch.

Does anyone have an idea to pass the feature-branch on the git clone/pull of Jenkins in the template job? As far as I know the feature-branch name is only available in the automatically created job names.

So I think I should find a way to cut the branch name from the job name to pass it as parameter when the git clone/pull in jenkins occurs defined in the template job. Does anyone have a working setup with this?

最满意答案

这似乎是在生成作业时自动传递的:)

It seems this is automatically passed when the jobs are generated :)

更多推荐

本文发布于:2023-07-15 05:29:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1110691.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:作业   分支   Branch   Jenkins   Build

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!