Branch: refs/heads/master Home: https://github.com/jenkinsci/jenkins Commit: 3a92445c2bc80a4c9e7c6fdf87731be109851405 https://github.com/jenkinsci/jenkins/commit/3a92445c2bc80a4c9e7c6fdf87731be109851405 Author: Markus Winter <m.win...@sap.com> Date: 2023-12-28 (Thu, 28 Dec 2023)
Changed paths: M core/src/main/java/hudson/slaves/SimpleScheduledRetentionStrategy.java Log Message: ----------- [JENKINS-72370][JENKINS-11889] fix SimpleScheduledRetentionStrategy with inbound agents (#8717) by implementing `isAcceptingTasks` the availability strategy ensures that no builds can start when the agent should not do anything. The current behaviour with an inbound agent is that the strategy disconnects the agent, just to get connected again by the agents java process followed by a disconnection a minute later and so on. After it is connected, the agent is actually accepting tasks. Additionally the change will only disconnect the agent when the controller the controller can itself launch the agent, this means inbound agents are not connected, to avoid playing jojo. The agent will just not accept new tasks for execution. The change also avoids the problem in [JENKINS-11889] for outbound agents where the accepting tasks of an agents seems to be not reset when changing the availability strategy to always on. -- You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/jenkins/push/refs/heads/master/111b3f-3a9244%40github.com.