简体   繁体   English

詹金斯(Jenkins)的工作永远永远等待着下一个执行者(取决于用户)

[英]Jenkins job keeps waiting for next available executor forever (user dependent)

Depending on the user who triggers the build, the build starts immediately or stays in the queue forever waiting for next available executor. 根据触发构建的用户的不同,构建会立即开始或永久停留在队列中,等待下一个可用的执行程序。 The build node is completely free. 构建节点是完全免费的。 The number of executors is 6. 执行者数量为6。

I already tried: 我已经尝试过:

  • Disabling the blocking jobs 禁用阻止作业
  • Configuring no blocking jobs at all 完全不配置任何阻止作业

The multijob project has project-based security, which allows the users to build, cancel, read and see the workspace. multijob项目具有基于项目的安全性,该安全性允许用户构建,取消,读取和查看工作区。 The current configuration of my jobs already worked in the past. 我的工作的当前配置在过去已经有效。 The jenkins master is not the node for which a free executor is being waited (the job is tied to a slave). jenkins主节点不是正在等待免费执行者的节点(该作业与从节点绑定)。 The job is a MultiJob Project and starts many other jobs. 该工作是一个MultiJob项目,它可以启动许多其他工作。

The problem was solved. 问题解决了。 The cause of the problem was the installation of the "Authorize Project" plugin" and the selection of "Run as User who Triggered the Build" as Strategy. Changing it to "Run as SYSTEM" solved the problem. The configuration of this plugin is done under "Manage Jenkins > Configure Global Security > Access Control for Builds" 问题的原因是安装“授权项目”插件”和选择“以触发​​构建的用户身份运行”作为策略。将其更改为“以系统身份运行”解决了该问题。此插件的配置为在“管理Jenkins>配置全局安全性>构建的访问控制”下完成

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

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