-
Improvement
-
Resolution: Fixed
-
Minor
-
Jenkins 1.6253, Label Linked Jobs 4.0.3, Docker Plugin 0.16.0
With fixed slaves, Label Linked Jobs dashboard shows available labels and the jobs associated with them correctly.
But when slaves are temporary - created on-demand when a job starts, then destroyed when the job is complete - those labels do not appear in the Label Linked Jobs dashboard. For example, the Docker Plugin allows creating a "cloud" where the "cloud" contains slaves that will be created from docker containers on demand. Each slave does have a label string associated with, just like a normal slave.
Not sure if the Jenkins generic cloud has a way of getting the labels or not. There are other plugins that create slaves on demand; they may have the same problem as the Docker Plugin.
Hello
The plugin is not meant to be compatible out of the box with all features and plugins of Jenkins, so I consider this requirement as an Improvement rather than a Bug
.
It would indeed be interesting to make the plugin able to gather data from Clouds' definitions.
As you suspected however there is very little data available to the plugin via generic Jenkins APIs. In fact I can see only one relevant function, canProvision(Label) which could be used to detect if a Label defined by a job is also supported by a Cloud, and to determine whether a job cannot be executed at all because no fixed slaves nor Clouds support it.
Note that this generic Jenkins API works only at the Cloud level, it doesn't allow granularity at template's level, which may be a concept specific to the Docker plugin.
Considering this, what would you suggest for the dashboard?