[英]run jenkins parallel job and wait from different servers
I have a requirement of Build and deployment using Jenkins. 我有使用Jenkins进行构建和部署的要求。 But i need to design for this work flow.
但是我需要为此工作流程进行设计。
JOB 1 (primary build from A server)
|------> JOB A (deploy)
|------> JOB B (deploy)
JOB 2 (delta build from B server)
|------> JOB C (deploy)
|------> JOB D (deploy)
Job 3 (this should execute upon JOBS A B C D are successful).
JOB 1 and Job 2 are configured in 2 servers as the build generates in 2 servers. 随着构建在2台服务器中生成,在2台服务器中配置了JOB 1和Job 2。 I have a JOB which can do both the JOBS 1 & 2, how can we achive the execution of JOB 3.
我有一个可以同时执行作业1和2的作业,我们如何才能实现作业3的执行。
Any Ideas ? 有任何想法吗 ?
or can it be configured like this 还是可以这样配置
JOB Main-- |
|--->JOB 1 (primary build from A server)
|------> JOB A (deploy)
|------> JOB B (deploy)
|--->JOB 2 (delta build from B server)
|------> JOB C (deploy)
|------> JOB D (deploy)
|---> JOB 3 (upon completing the JOB 1,2 and JOB A B C D)
Screen shots would be helpful. 屏幕截图会有所帮助。
Thanks in advance. 提前致谢。
Actually this a simple way to doing without using any specific plugin. 实际上,这是不使用任何特定插件的简单方法。
You can have your jobs create a particular file on completion of execution like 您可以让作业在执行完成后创建一个特定文件,例如
JobA_Success.txt, JobA_Success.txt,
JobB_Success.txt, JobB_Success.txt,
JobC_Success.txt and JobC_Success.txt和
JobD_Success.txt JobD_Success.txt
Job Main
|
--> Job 1 (Job A and Job B) triggers Job 3 after execution
--> Job 2 (Job C and Job D) triggers Job 3 after execution
Job 3 --> Uses a script trigger which will check for all the 4 text files to be present and only if present it will start building otherwise there is no new build.
This is just a logical thought, hope it is useful 这只是一个合理的想法,希望它是有用的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.