Class MSBuildCommandDescriptor

All Implemented Interfaces:
Saveable, OnMaster, org.jenkinsci.plugins.structs.describable.CustomDescribableModel
Direct Known Subclasses:
Build.DescriptorImpl, Clean.DescriptorImpl, Pack.DescriptorImpl, Publish.DescriptorImpl, Test.DescriptorImpl

public abstract class MSBuildCommandDescriptor extends CommandDescriptor
A descriptor for an MSBuild-based .NET command.
  • Constructor Details

    • MSBuildCommandDescriptor

      protected MSBuildCommandDescriptor()
      Creates a new .NET MSBuild command descriptor instance.

      This version works when you follow the common convention, where a descriptor is written as the static nested class of the describable class.

    • MSBuildCommandDescriptor

      protected MSBuildCommandDescriptor(@NonNull Class<? extends MSBuildCommand> clazz)
      Creates a new .NET MSBuild command descriptor instance for a specific class.
      Parameters:
      clazz - The class implementing the command described by this descriptor instance.
  • Method Details

    • doCheckPropertiesString

      @NonNull @POST public FormValidation doCheckPropertiesString(@QueryParameter String value, @CheckForNull @AncestorInPath Item item)
      Performs validation on a set of MSBuild properties.
      Parameters:
      value - The value to validate.
      item - The item being configured.
      Returns:
      The result of the validation.
    • doFillConfigurationItems

      @NonNull @POST public final ComboBoxModel doFillConfigurationItems(@CheckForNull @AncestorInPath Item item)
      Fills a combobox with standard MSBuild configuration names.
      Parameters:
      item - The item being configured.
      Returns:
      A suitable filled combobox model.
    • customUninstantiate

      @NonNull public org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable customUninstantiate(@NonNull org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable ud)