Find plugins

1.2Minimum Jenkins requirement: 1.580.1ID: variant



This library plugin allows other plugins to behave differently depending on the "environment" where they run.

@OptionalExtension and @OptionalPackage annotations can be used to define a set of required:

  • Plugins.
  • Classes.
  • Variants.

These variants can be activated through:

  • JENKINS_VARIANT environment variable.
  • Jenkins-Variant attribute in META-INF/MANIFEST.MF in the WAR file.
  • Files in $JENKINS_HOME/variants folder.

Version History

Version 1.2 (2019-02-15)

Version 1.1 (2015-11-25)

  • Fixed JENKINS-39612: Upgrade to new parent POM.
  • Fixed JENKINS-37317: Errors when requiredClasses that do not exist are provided.

Version 1.0 (2015-08-07)

Initial plugin release.

ArchivesGet past versions
This plugin has no labels