Issue
-
When adding an agent to the controller, we get following license warning message:
"You have configured 1 executors (of which 0 are currently in use), above your licensed limit of 0. Please contact CloudBees Sales for a quote on additional executors."
-
Why is the agent on the controller considered to be an executor? We had configured the controller with 0 executors.
Resolution
If we check the licenses on the operations center and controller we see:
-
On operations center: CloudBees Jenkins Enterprise license with 40 executors, Operations center server license with sub-licensing for 3 client controllers
-
On the controller: Operations Center managed CloudBees Jenkins Enterprise license with 0 dedicated executors
If you would like to have dedicated executors then you need to change your license strategy. You can find all types in the link below:
If you have fixed dedicated executors, just select License (fixed dedicated executors)
.
Root Cause
If your license only have X executors, it means that you should only declare X executors in total on your agents. It is the same if you build, or not, in parallel. The important thing is the global number you have declared - even if you don’t use them.
Example:
"You have configured 42 executors (of which 0 are currently in use), above your licensed limit of 5. Please contact CloudBees Sales for a quote on additional executors."
According with the message you have declared 42, but you can only declare 5.