简体   繁体   English

Jenkins 多作业配置

[英]Jenkins Multi Job configuration

I have 2 jobs that run on a Jenkins slave -我有 2 个作业在 Jenkins 从站上运行 -

1. AutoIT
2. MoveMouse

The first job has to run 4 times a day (eg. 8 AM, 12 PM, 6 PM, 9 PM)第一项工作必须每天运行 4 次(例如上午 8 点、下午 12 点、下午 6 点、晚上 9 点)

MouseMove is also an AutoIT script that runs on the slave machine to keep it alive and prevent it from locking. MouseMove也是一个AutoIT脚本,它在从机上运行以保持它的活动状态并防止它被锁定。 MouseMove has to run continuously between these 4 jobs every 10 mins. MouseMove必须每 10 分钟在这 4 个作业之间连续运行。 Also I have to make sure that both the jobs never overlap each other ie MoveMouse should run every 10 mins between two runs of AutoIT .此外,我必须确保两个作业永远不会相互重叠,即MoveMouse应该在两次AutoIT运行之间每 10 分钟运行一次。

I have downloaded Multi Job Plugin and also created a multi job but I am not sure how can I achieve the above requirement.我已经下载了 Multi Job Plugin 并创建了一个 multi job,但我不确定如何实现上述要求。 I am able to trigger only one run of MoveMouse till now.到目前为止,我只能触发一次MoveMouse

It seems like you could schedule AutoIT 4 times a day, and MouseMove every 10 minutes - and prevent them from running at the same time by using a plugin.似乎您可以每天安排 AutoIT 4 次,每 10 分钟安排一次 MouseMove - 并通过使用插件来防止它们同时运行。 I suggest https://wiki.jenkins.io/display/JENKINS/Lockable+Resources+Plugin我建议https://wiki.jenkins.io/display/JENKINS/Lockable+Resources+Plugin

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM