Class EnvInjectPluginHelper

java.lang.Object
org.jenkinsci.plugins.envinjectapi.util.EnvInjectPluginHelper

public class EnvInjectPluginHelper extends Object
API Methods for checking installation status of the EnvInject plugin.
Author:
Gregory Boissinot, Oleg Nenashev
  • Method Details

    • isEnvInjectActivated

      public static boolean isEnvInjectActivated(@NonNull Run<?,?> run)
      Check if EnvInject is activated for the Run. It means that the EnvInjectAction is defined, actually this action may be contributed by other plugins.
      Parameters:
      run - Run
      Returns:
      true if the run has EnvInjectAction
    • isEnvInjectPluginInstalled

      public static boolean isEnvInjectPluginInstalled()
      Check if the EnvInject plugin is installed
      Returns:
      true If the plugin is installed. It may be not activated.