public class BPBuildInfo extends BPBuildEnv
Modifier and Type | Field and Description |
---|---|
static String |
OVERRIDE_CREDENTIALS_CONTEXT_KEY |
static String |
PROMOTION_ENV_VARS_PREFIX |
ENV_BUILD_NUMBER, ENV_JOB_NAME, ENV_NODE_NAME
Constructor and Description |
---|
BPBuildInfo() |
BPBuildInfo(hudson.model.TaskListener listener,
String consoleMsgPrefix,
hudson.FilePath configDir,
BPBuildEnv currentBuildEnv,
BPBuildEnv targetBuildEnv) |
Modifier and Type | Method and Description |
---|---|
Serializable |
get(String key) |
hudson.FilePath |
getConfigDir() |
String |
getConsoleMsgPrefix() |
BPBuildEnv |
getCurrentBuildEnv() |
hudson.model.TaskListener |
getListener() |
String |
getRelativeDir(hudson.FilePath filePath,
String removePrefix) |
String |
getRelativePathToFile(hudson.FilePath filePath,
String removePrefix) |
BPBuildEnv |
getTargetBuildEnv() |
boolean |
isVerbose() |
boolean |
onMaster() |
void |
printIfVerbose(String message) |
void |
println(String message) |
void |
put(String key,
Serializable value) |
byte[] |
readFileFromMaster(String filePath) |
Serializable |
remove(String key) |
void |
setConfigDir(hudson.FilePath configDir) |
void |
setConsoleMsgPrefix(String consoleMsgPrefix) |
void |
setCurrentBuildEnv(BPBuildEnv currentBuildEnv) |
void |
setListener(hudson.model.TaskListener listener) |
void |
setTargetBuildEnv(BPBuildEnv targetBuildEnv) |
void |
setVerbose(boolean verbose) |
String |
toString() |
addToToString, fixMasterNodeName, getBaseDirectory, getBuildTime, getEnvVars, getEnvVarsWithPrefix, getNormalizedBaseDirectory, logEnvVars, setBaseDirectory, setBuildTime, setEnvVars
public static final String PROMOTION_ENV_VARS_PREFIX
public static final String OVERRIDE_CREDENTIALS_CONTEXT_KEY
public BPBuildInfo()
public BPBuildInfo(hudson.model.TaskListener listener, String consoleMsgPrefix, hudson.FilePath configDir, BPBuildEnv currentBuildEnv, BPBuildEnv targetBuildEnv)
public hudson.FilePath getConfigDir()
public void setConfigDir(hudson.FilePath configDir)
public hudson.model.TaskListener getListener()
public void setListener(hudson.model.TaskListener listener)
public String getConsoleMsgPrefix()
public void setConsoleMsgPrefix(String consoleMsgPrefix)
public boolean isVerbose()
public void setVerbose(boolean verbose)
public BPBuildEnv getCurrentBuildEnv()
public void setCurrentBuildEnv(BPBuildEnv currentBuildEnv)
public BPBuildEnv getTargetBuildEnv()
public void setTargetBuildEnv(BPBuildEnv targetBuildEnv)
public Serializable get(String key)
public void put(String key, Serializable value)
public Serializable remove(String key)
public boolean onMaster()
public byte[] readFileFromMaster(String filePath)
public String getRelativePathToFile(hudson.FilePath filePath, String removePrefix) throws IOException, InterruptedException
IOException
InterruptedException
public String getRelativeDir(hudson.FilePath filePath, String removePrefix) throws IOException, InterruptedException
IOException
InterruptedException
public void println(String message)
public void printIfVerbose(String message)
public String toString()
toString
in class BPBuildEnv
Copyright © 2016–2018. All rights reserved.