public final class JenkinsWrapper extends Object
Set<Task> unblockedTasks = Jenkins.getInstance().getQueue().getUnblockedTasks();
so it was put in a wrapper function that correctly checks the nulls.Constructor and Description |
---|
JenkinsWrapper() |
Modifier and Type | Method and Description |
---|---|
static List<hudson.model.AbstractProject> |
getAbstractProjects()
Returns all the AbstractProject instances in Jenkins.
|
static Set<hudson.model.Queue.Task> |
getUnblockedTasks()
Returns the list of unblocked tasks in Jenkins.
|
public static Set<hudson.model.Queue.Task> getUnblockedTasks()
Set<Task> unblockedTasks = Jenkins.getInstance().getQueue().getUnblockedTasks();
public static List<hudson.model.AbstractProject> getAbstractProjects()
Copyright © 2016–2017. All rights reserved.