@ParametersAreNullableByDefault public class BuildContext extends BasicBuildContext
Run
, FilePath
, TaskListener
and PrintStream
-
the typical objects passed from one method to the other in a Jenkins Builder/BuildStep implementation.Handle
we might not have a Run
, FilePath
, TaskListener
, but we still
want to provide a PrintStream
for logging. Therefore the first three objects can be null, the PrintStream
must not be null.Modifier and Type | Field and Description |
---|---|
String |
currentItem
The current Item (job, pipeline,...) where the plugin is used from.
|
RemoteJenkinsServer |
effectiveRemoteServer |
PrintStream |
logger |
listener, run, workspace
Constructor and Description |
---|
BuildContext(PrintStream logger,
RemoteJenkinsServer effectiveRemoteServer,
String currentItem) |
BuildContext(Run<?,?> run,
FilePath workspace,
TaskListener listener,
PrintStream logger,
RemoteJenkinsServer effectiveRemoteServer) |
BuildContext(Run<?,?> run,
FilePath workspace,
TaskListener listener,
PrintStream logger,
RemoteJenkinsServer effectiveRemoteServer,
String currentItem) |
@Nonnull public final PrintStream logger
@Nonnull public RemoteJenkinsServer effectiveRemoteServer
public BuildContext(@Nullable Run<?,?> run, @Nullable FilePath workspace, @Nullable TaskListener listener, @Nonnull PrintStream logger, @Nonnull RemoteJenkinsServer effectiveRemoteServer, @Nullable String currentItem)
public BuildContext(@Nullable Run<?,?> run, @Nullable FilePath workspace, @Nullable TaskListener listener, @Nonnull PrintStream logger, @Nonnull RemoteJenkinsServer effectiveRemoteServer)
public BuildContext(@Nonnull PrintStream logger, @Nonnull RemoteJenkinsServer effectiveRemoteServer, @Nullable String currentItem)
Copyright © 2016–2023. All rights reserved.