我能够设置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 :)
更多推荐
发布评论