Why is Jenkins executor shown while in waiting or flyweight state?

Article ID:209686827
1 minute readKnowledge base

Issue

When my pipeline is paused for input (this could be for quite some time such as days/weeks), it still shows on the main screen that an executor is taken up and that it’s active. I would prefer, if possible, that only my pipeline stage view is showing the waiting for input and that the common page executor isn’t displayed, or even taken up.

Environment

  • CloudBees Jenkins Enterprise

  • Pipeline Plugin

Resolution

If you put input inside a node block it will keep the executor live. Most use cases want it outside any node block, so you release the executor while waiting.

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.