Jenkins setup:A jenkins job sends a notification to a specific external role when it enters the "Waiting for next available executor on ‘build-in Node’ "state。
I have multiple machines and multiple nodes, and I need to send notifications to the startup user when the job is in a waiting queue state, and the job is triggered by gerrit
You can use a combination of a Jenkins plugin and a script to achieve this. The Job Queue Listener Plugin can help detect when a job enters the waiting queue. Then, you can set up a Groovy script or use the Notification Plugin to send the notification to the startup user.
For Gerrit-triggered jobs, you might also want to ensure your notification system integrates with the Gerrit context (like identifying the triggering user). A custom pipeline script could handle this effectively.
1 Like