Class BuildContext
java.lang.Object
org.jenkinsci.plugins.ParameterizedRemoteTrigger.BasicBuildContext
org.jenkinsci.plugins.ParameterizedRemoteTrigger.BuildContext
This object wraps a
The reason for wrapping is simplicity on the one hand. On the other in an asynchronous pipeline usage via the
Run, FilePath, TaskListener and PrintStream -
the typical objects passed from one method to the other in a Jenkins Builder/BuildStep implementation.The reason for wrapping is simplicity on the one hand. On the other in an asynchronous pipeline usage via the
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe current Item (job, pipeline,...) where the plugin is used from.final PrintStreamFields inherited from class org.jenkinsci.plugins.ParameterizedRemoteTrigger.BasicBuildContext
listener, run, workspace -
Constructor Summary
ConstructorsConstructorDescriptionBuildContext(Run<?, ?> run, FilePath workspace, TaskListener listener, PrintStream logger, RemoteJenkinsServer effectiveRemoteServer) BuildContext(Run<?, ?> run, FilePath workspace, TaskListener listener, PrintStream logger, RemoteJenkinsServer effectiveRemoteServer, String currentItem) BuildContext(PrintStream logger, RemoteJenkinsServer effectiveRemoteServer, String currentItem) -
Method Summary
-
Field Details
-
logger
-
effectiveRemoteServer
-
currentItem
The current Item (job, pipeline,...) where the plugin is used from.
-
-
Constructor Details
-
BuildContext
public BuildContext(@Nullable Run<?, ?> run, @Nullable FilePath workspace, @Nullable TaskListener listener, @NonNull PrintStream logger, @NonNull RemoteJenkinsServer effectiveRemoteServer, @Nullable String currentItem) -
BuildContext
public BuildContext(@Nullable Run<?, ?> run, @Nullable FilePath workspace, @Nullable TaskListener listener, @NonNull PrintStream logger, @NonNull RemoteJenkinsServer effectiveRemoteServer) -
BuildContext
public BuildContext(@NonNull PrintStream logger, @NonNull RemoteJenkinsServer effectiveRemoteServer, @Nullable String currentItem)
-