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 IllegalStateExceptionRetrieves theJenkinsinstance.- Returns:
- Jenkins instance
- Throws:
IllegalStateException- Jenkins instance is not ready
-