简体   繁体   English

Jenkins Job手表-机器专用

[英]Jenkins Job watch - machine specific

I have a jenkins with multiple jobs assigned to multiple machines. 我有一个詹金斯将多个作业分配给多台计算机。 I am trying to do a machine cleanup (Deleting temporary files and views from clearcase which are old enough). 我正在尝试进行机器清理(从足够旧的Clearcase中删除临时文件和视图)。 For that i need to check if there is any ongoing job running on that machine. 为此,我需要检查该计算机上是否正在运行任何正在进行的作业。 Is it possible through some commands or any plugin to jenkins? 是否可以通过某些命令或jenkins的任何插件?

Thanks 谢谢

All my slaves are single threaded. 我所有的奴隶都是单线程的。 That means when my cleanup jobs run on that machine, no other job runs. 这意味着当我的清理作业在该计算机上运行时,没有其他作业在运行。 You can employ that same technology as well. 您也可以采用相同的技术。 However, you might need to use Heavy Job Plugin and set the job weight to the number of executors of the slave(s). 但是,您可能需要使用“ 重型作业插件” ,并将作业权重设置为从站执行程序的数量。

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

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