詹金斯:添加PreBuild步骤 [英] Jenkins: Add PreBuild step

查看:210
本文介绍了詹金斯:添加PreBuild步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想添加一个预构建步骤,在该步骤中,我要触发一个特定的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.

推荐答案

带有,您可以自由定义流".使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆