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
BuildContext
expand
in interface BuildContext
s
- 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 BuildContext
public hudson.model.TaskListener getListener()
getListener
in interface BuildContext
Copyright © 2017–2021 Google. All rights reserved.