Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Mark the plugin for adoption

Wiki Markup
{jenkins-plugin-info:pluginId=label-verifier}
Excerpt

This plugin allows system administrator to programmatically verify the label assignment correctness on slaves.

It is useful to prevent a human error in label assignment when you have a larger number or self-organizing slaves, and generally as a means to make sure your cluster is healthy.

Usage

Go to the label configuration page of the label whose assignment you want to validate. For example, http://yourserver/jenkins/label/foo/configure.
You can associate "label verifies" through this UI, as follows:

The script specified here gets executed every time a slave with this label comes online. If the script returns non-zero exit code, the label assignment is considered illegal, and Jenkins will mark the slave as offline to prevent it from getting used for a build.

Extension points

LabelVerifier is an extension point that can be implemented by other plugins, to perform the check in other means.

Open issues

Jira Issues
anonymoustrue
urlhttps://issues.jenkins-ci.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+JENKINS+AND+status+in+%28Open%2C+%22In+Progress%22%2C+Reopened%29+AND+component+%3D+%27label-verifier%27&tempMax=1000

History

Version 1.2 (Dec 12, 2017)

  • PR #3 - Update the Jenkins Core requirement to 1.651.3
  • PR #3 - Cleanup issues reported by FindBugs and injected Unit tests

Version 1.1 (Dec 08, 2013)

  • Regular expression verifier
  • Logic expressions (AND, OR, NOT)

Version 1.0 (Sep 11, 2010)

  • First release