public class Utils extends Object
コンストラクタと説明 |
---|
Utils() |
修飾子とタイプ | メソッドと説明 |
---|---|
static String |
expandVariables(Map<String,String> buildVars,
String token)
Expands the variable in the given string to its value in the variables available to this build.
|
static hudson.model.Computer[] |
getAllComputers()
Get all Computers of Jenkins including master.
|
static AppLabelSet |
getApplicationLabels()
Getting application labels from all nodes that connected to jenkins.
|
static AppLabelSet |
getApplicationLabels(hudson.model.Node node)
Getting application labels from specified node.
|
static String |
runExternalCommand(String... command)
Executing external command, and get output.
|
public static String expandVariables(Map<String,String> buildVars, String token)
buildVars
- Map of the build-specific variables.token
- The token which may or may not contain variables in the format ${foo}.public static hudson.model.Computer[] getAllComputers()
public static AppLabelSet getApplicationLabels()
public static AppLabelSet getApplicationLabels(hudson.model.Node node)
node
- The target node.Copyright © 2016–2022. All rights reserved.