public class FreeStyleBuildContext extends Object implements BuildContext
| Constructor and Description |
|---|
FreeStyleBuildContext(hudson.model.AbstractBuild build,
hudson.model.BuildListener listener) |
| Modifier and Type | Method and Description |
|---|---|
String |
expand(String s)
Expands environment variable references in the provided string if the current build is for a
freestyle project.
|
hudson.model.TaskListener |
getListener() |
hudson.FilePath |
getWorkspace() |
public FreeStyleBuildContext(hudson.model.AbstractBuild build,
hudson.model.BuildListener listener)
public String expand(String s) throws IOException, InterruptedException
BuildContextexpand in interface BuildContexts - the string to apply variable expansion tos with variables expanded, if the current build is for a freestyle
job, or s otherwiseIOException - if an I/O error occurs attempting to retrieve the necessary context to
perform variable expansionInterruptedException - if an interruption occurs attempting to retrieve the necessary
context to perform variable expansionpublic hudson.FilePath getWorkspace()
getWorkspace in interface BuildContextpublic hudson.model.TaskListener getListener()
getListener in interface BuildContextCopyright © 2017–2021 Google. All rights reserved.