Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-24058

Allow label auto-detection in addition to verifying existing labels using the same validation command.

XMLWordPrintable

      The current plug-in looks at the labels of a slave that comes online and verifies if those labels are still valid.

      That same validation script/command can also be used to auto-detect whether some label is applicable to any slave that comes online and automatically update its labels accordingly.

      For example, Jenkins could check the installed python version whenever a slave comes online and update (i.e. add, remove or replace) that slave's labels accordingly.

      If python 2.6 was replaced by python 3.3 on the system and therefore only python version 3.3 is found, label 'python-2.6' is no longer valid and should be removed and label 'python-3.3' becomes valid and should be added. The general 'python' label will still be valid and remains unchanged.

      In the label configuration page, the user may then choose between the verification and auto-detect option for each individual label.

      A logging feature may be desired, so the administrator knows which labels were added or stripped automatically by the plug-in.

            Unassigned Unassigned
            tbacker Brother Bear
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: