|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.seitenbau.jenkins.plugins.dynamicparameter.util.JenkinsUtils
public final class JenkinsUtils
Jenkins utility methods.
| Method Summary | |
|---|---|
static Object |
execute(String script)
Execute the script locally. |
static Object |
execute(String script,
hudson.FilePath[] classPaths)
Execute the script locally using the given class path. |
static Object |
execute(String script,
Map<String,String> parameters)
Execute the script locally using the given parameters. |
static hudson.remoting.VirtualChannel |
findActiveChannel(hudson.model.Label label)
Find an active node channel for the label of the current project. |
static hudson.model.Label |
findProjectLabel(UUID parameterUUID)
Find the label assigned to the current project. |
static Set<org.jenkinsci.plugins.scriptler.config.Script> |
getAllScriptlerScripts()
Get all Scriptler scripts. |
static boolean |
isPluginAvailable(String shortName)
Check if a plugin is available. |
static boolean |
isScriptlerAvailable()
Check if the Scriptler plugin is available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Object execute(String script)
script - script to execute
public static Object execute(String script,
Map<String,String> parameters)
script - script to executeparameters - parameters
public static Object execute(String script,
hudson.FilePath[] classPaths)
script - script to executeclassPaths - class paths
public static boolean isPluginAvailable(String shortName)
shortName - plugin short name
true if plugin is installedpublic static boolean isScriptlerAvailable()
true if Scriptler is installedpublic static Set<org.jenkinsci.plugins.scriptler.config.Script> getAllScriptlerScripts()
public static hudson.remoting.VirtualChannel findActiveChannel(hudson.model.Label label)
label - label whose nodes to check
null if none foundpublic static hudson.model.Label findProjectLabel(UUID parameterUUID)
parameterUUID - UUID of the project parameter
null if the label of the current project cannot be found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||