public class PipelineBuildContext extends Object implements BuildContext
| Constructor and Description |
|---|
PipelineBuildContext(org.jenkinsci.plugins.workflow.steps.StepContext stepContext) |
| 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 PipelineBuildContext(org.jenkinsci.plugins.workflow.steps.StepContext stepContext)
public String expand(String s)
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 otherwisepublic hudson.FilePath getWorkspace()
throws IOException,
InterruptedException
getWorkspace in interface BuildContextIOExceptionInterruptedExceptionpublic hudson.model.TaskListener getListener()
throws IOException,
InterruptedException
getListener in interface BuildContextIOExceptionInterruptedExceptionCopyright © 2017–2021 Google. All rights reserved.