Package hudson.plugins.msbuild
Class MsBuildBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.plugins.msbuild.MsBuildBuilder
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
- Author:
- kyle.sweeney@valtech.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorDescriptionMsBuildBuilder
(String msBuildName, String msBuildFile, String cmdLineArgs, boolean buildVariablesAsProperties, boolean continueOnBuildFailure, boolean unstableIfWarnings) Deprecated.MsBuildBuilder
(String msBuildName, String msBuildFile, String cmdLineArgs, boolean buildVariablesAsProperties, boolean continueOnBuildFailure, boolean unstableIfWarnings, boolean doNotUseChcpCommand) When this builder is created in the project configuration step, the builder object will be created from the strings below. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static int
getCodePageIdentifier
(Charset charset) Get the code page identifier for the given charset.boolean
boolean
boolean
boolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
MsBuildBuilder
@Deprecated public MsBuildBuilder(String msBuildName, String msBuildFile, String cmdLineArgs, boolean buildVariablesAsProperties, boolean continueOnBuildFailure, boolean unstableIfWarnings) Deprecated.When this builder is created in the project configuration step, the builder object will be created from the strings below.- Parameters:
msBuildName
- The Visual Studio logical namemsBuildFile
- The name/location of the MSBuild filecmdLineArgs
- Whitespace separated list of command line argumentsbuildVariablesAsProperties
- If true, pass build variables as properties to MSBuildcontinueOnBuildFailure
- If true, job will continue dispite of MSBuild build failureunstableIfWarnings
- If true, job will be unstable if there are warnings
-
MsBuildBuilder
@DataBoundConstructor public MsBuildBuilder(String msBuildName, String msBuildFile, String cmdLineArgs, boolean buildVariablesAsProperties, boolean continueOnBuildFailure, boolean unstableIfWarnings, boolean doNotUseChcpCommand) When this builder is created in the project configuration step, the builder object will be created from the strings below.- Parameters:
msBuildName
- The Visual Studio logical namemsBuildFile
- The name/location of the MSBuild filecmdLineArgs
- Whitespace separated list of command line argumentsbuildVariablesAsProperties
- If true, pass build variables as properties to MSBuildcontinueOnBuildFailure
- If true, job will continue dispite of MSBuild build failureunstableIfWarnings
- If true, job will be unstable if there are warningsdoNotUseChcpCommand
- If true, job will not use chcp command before running msbuild
-
-
Method Details
-
getMsBuildFile
-
getMsBuildName
-
getCmdLineArgs
-
getBuildVariablesAsProperties
public boolean getBuildVariablesAsProperties() -
getContinueOnBuildFailure
public boolean getContinueOnBuildFailure() -
getUnstableIfWarnings
public boolean getUnstableIfWarnings() -
getDoNotUseChcpCommand
public boolean getDoNotUseChcpCommand() -
getMsBuild
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classBuilder
-
getCodePageIdentifier
Get the code page identifier for the given charset.- Parameters:
charset
- the charset- Returns:
- the code page identifier
-