public class DotNetCoreRunner extends hudson.tasks.Builder implements Serializable
Builder.
When the user configures the project and enables this builder,
Descriptor.newInstance(StaplerRequest) is invoked
and a new DotNetCoreRunner is created. The created
instance is persisted to the project configuration XML by using
XStream, so this allows you to use instance fields (like targetCode)
to remember the configuration.
When a build is performed, the perform(hudson.model.AbstractBuild<?, ?>, hudson.Launcher, hudson.model.BuildListener) method will be invoked.
| Modifier and Type | Class and Description |
|---|---|
static class |
DotNetCoreRunner.DescriptorImpl
Descriptor for
DotNetCoreRunner. |
| Constructor and Description |
|---|
DotNetCoreRunner(String targetCode,
String additionalPackages)
The main DotNetCoreRunner constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAdditionalPackages()
We'll use this from the
config.jelly |
DotNetCoreRunner.DescriptorImpl |
getDescriptor()
Gets the current description
|
String |
getTargetCode()
We'll use this from the
config.jelly. |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
public String getTargetCode()
config.jelly.public String getAdditionalPackages()
config.jellypublic boolean perform(@Nonnull hudson.model.AbstractBuild<?,?> build, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.BuildListener listener) throws IOException, InterruptedException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerbuild - launcher - listener - IOExceptionInterruptedExceptionUnsupportedEncodingExceptionpublic DotNetCoreRunner.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2016–2017. All rights reserved.