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)
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
otherwisepublic hudson.FilePath getWorkspace() throws IOException, InterruptedException
getWorkspace
in interface BuildContext
IOException
InterruptedException
public hudson.model.TaskListener getListener() throws IOException, InterruptedException
getListener
in interface BuildContext
IOException
InterruptedException
Copyright © 2017–2021 Google. All rights reserved.