Class JenkinsHelper

java.lang.Object
org.jenkinsci.plugins.securityinspector.util.JenkinsHelper

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class JenkinsHelper extends Object
Utility helper for working with Jenkins instances.
Author:
Oleg Nenashev
  • Method Details

    • getInstanceOrFail

      @Nonnull @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static Jenkins getInstanceOrFail() throws IllegalStateException
      Retrieves the Jenkins instance.
      Returns:
      Jenkins instance
      Throws:
      IllegalStateException - Jenkins instance is not ready