詹金斯:添加PreBuild步骤 [英] Jenkins: Add PreBuild step
问题描述
我想添加一个预构建步骤,在该步骤中,我要触发一个特定的Jenkins作业并等待其完成,然后再开始执行当前作业.
I wanted to add a pre build step where, I want to trigger a specific Jenkins job and wait for it to complete before starting to go on with the current job.
例如: 工作区A 工作区B
For eg: Workspace A Workspace B
如果由于git push启动了工作区B,我希望先触发工作区A,然后再触发工作区B.
If Workspace B is started due to git push, I wanted Workspace A to be triggered first and then Workspace B.
这可行吗?
我尝试了使用参数化插件和Jenkins管道,但是它们似乎仅对从Workspace A进行后期构建动作的延续很有用.
I tried with parameterised plugin and Jenkins pipeline but both appear to be good only for post build action continuation from Workspace A.
推荐答案
带有 jenkins管道,您可以自由定义流".使用build
步骤,您可以随时触发另一个作业,即在执行构建"之前.
With jenkins-pipeline, you are free to define your "flow". Using the build
step, you can trigger another job whenever you like, i.e., before you do your "build".
这篇关于詹金斯:添加PreBuild步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!