Class DotNetConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Serializable,OnMaster
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
ConstructorsConstructorDescriptionCreates the global configuration for the .NET SDK plugin. -
Method Summary
Modifier and TypeMethodDescriptiondoCheckBuildAllowed(boolean buildAllowed) Runs validation when enabling/disabling the "build" command for use in freestyle projects.doCheckCleanAllowed(boolean cleanAllowed) Runs validation when enabling/disabling the "clean" command for use in freestyle projects.doCheckListPackageAllowed(boolean listPackageAllowed) Runs validation when enabling/disabling the "list package" command for use in freestyle projects.doCheckNuGetDeleteAllowed(boolean nuGetDeleteAllowed) Runs validation when enabling/disabling the "nuget delete" command for use in freestyle projects.doCheckNuGetLocalsAllowed(boolean nuGetLocalsAllowed) Runs validation when enabling/disabling the "nuget locals" command for use in freestyle projects.doCheckNuGetPushAllowed(boolean nuGetPushAllowed) Runs validation when enabling/disabling the "nuget push" command for use in freestyle projects.doCheckPackAllowed(boolean packAllowed) Runs validation when enabling/disabling the "pack" command for use in freestyle projects.doCheckPublishAllowed(boolean publishAllowed) Runs validation when enabling/disabling the "publish" command for use in freestyle projects.doCheckRestoreAllowed(boolean restoreAllowed) Runs validation when enabling/disabling the "restore" command for use in freestyle projects.doCheckTestAllowed(boolean testAllowed) Runs validation when enabling/disabling the "test" command for use in freestyle projects.doCheckToolRestoreAllowed(boolean toolRestoreAllowed) Runs validation when enabling/disabling the "tool restore" command for use in freestyle projects.Gets the category for this global configuration.booleanDetermines whether the "build" command should be available for use in freestyle projects.booleanDetermines whether the "clean" command should be available for use in freestyle projects.booleanDetermines whether the "list package" command should be available for use in freestyle projects.booleanDetermines whether the "nuget delete" command should be available for use in freestyle projects.booleanDetermines whether the "nuget locals" command should be available for use in freestyle projects.booleanDetermines whether the "nuget push" command should be available for use in freestyle projects.booleanDetermines whether the "pack" command should be available for use in freestyle projects.booleanDetermines whether the "publish" command should be available for use in freestyle projects.booleanDetermines whether the "restore" command should be available for use in freestyle projects.booleanDetermines whether the telemetry opt-out is set.booleanDetermines whether the "test" command should be available for use in freestyle projects.booleanDetermines whether the "tool restore" command should be available for use in freestyle projects.voidsetBuildAllowed(boolean allowed) Determines whether the "build" command should be available for use in freestyle projects.voidsetCleanAllowed(boolean allowed) Determines whether the "clean" command should be available for use in freestyle projects.voidsetListPackageAllowed(boolean allowed) Determines whether the "list package" command should be available for use in freestyle projects.voidsetNuGetDeleteAllowed(boolean allowed) Determines whether the "nuget delete" command should be available for use in freestyle projects.voidsetNuGetLocalsAllowed(boolean allowed) Determines whether the "nuget locals" command should be available for use in freestyle projects.voidsetNuGetPushAllowed(boolean allowed) Determines whether the "nuget push" command should be available for use in freestyle projects.voidsetPackAllowed(boolean allowed) Determines whether the "pack" command should be available for use in freestyle projects.voidsetPublishAllowed(boolean allowed) Determines whether the "publish" command should be available for use in freestyle projects.voidsetRestoreAllowed(boolean allowed) Determines whether the "restore" command should be available for use in freestyle projects.voidsetTelemetryOptOut(boolean telemetryOptOut) Determines whether the telemetry opt-out should be set.voidsetTestAllowed(boolean allowed) Determines whether the "test" command should be available for use in freestyle projects.voidsetToolRestoreAllowed(boolean allowed) Determines whether the "tool restore" command should be available for use in freestyle projects.Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DotNetConfiguration
@DataBoundConstructor public DotNetConfiguration()Creates the global configuration for the .NET SDK plugin.
-
-
Method Details
-
getCategory
Gets the category for this global configuration.- Overrides:
getCategoryin classDescriptor<GlobalConfiguration>- Returns:
ToolConfigurationCategory.
-
doCheckBuildAllowed
Runs validation when enabling/disabling the "build" command for use in freestyle projects.In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.
- Parameters:
buildAllowed- The checked state of the relevant checkbox on the configuration page.- Returns:
- The validation result; either "OK" or a warning indicating the command is still in use.
-
isBuildAllowed
public boolean isBuildAllowed()Determines whether the "build" command should be available for use in freestyle projects.- Returns:
trueif the command should be available;falseotherwise.
-
setBuildAllowed
@DataBoundSetter public void setBuildAllowed(boolean allowed) Determines whether the "build" command should be available for use in freestyle projects.- Parameters:
allowed-trueif the command should be available;falseotherwise.
-
doCheckCleanAllowed
Runs validation when enabling/disabling the "clean" command for use in freestyle projects.In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.
- Parameters:
cleanAllowed- The checked state of the relevant checkbox on the configuration page.- Returns:
- The validation result; either "OK" or a warning indicating the command is still in use.
-
isCleanAllowed
public boolean isCleanAllowed()Determines whether the "clean" command should be available for use in freestyle projects.- Returns:
trueif the command should be available;falseotherwise.
-
setCleanAllowed
@DataBoundSetter public void setCleanAllowed(boolean allowed) Determines whether the "clean" command should be available for use in freestyle projects.- Parameters:
allowed-trueif the command should be available;falseotherwise.
-
doCheckListPackageAllowed
@NonNull @POST public FormValidation doCheckListPackageAllowed(@QueryParameter boolean listPackageAllowed) Runs validation when enabling/disabling the "list package" command for use in freestyle projects.In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.
- Parameters:
listPackageAllowed- The checked state of the relevant checkbox on the configuration page.- Returns:
- The validation result; either "OK" or a warning indicating the command is still in use.
-
isListPackageAllowed
public boolean isListPackageAllowed()Determines whether the "list package" command should be available for use in freestyle projects.- Returns:
trueif the command should be available;falseotherwise.
-
setListPackageAllowed
@DataBoundSetter public void setListPackageAllowed(boolean allowed) Determines whether the "list package" command should be available for use in freestyle projects.- Parameters:
allowed-trueif the command should be available;falseotherwise.
-
doCheckNuGetDeleteAllowed
@NonNull @POST public FormValidation doCheckNuGetDeleteAllowed(@QueryParameter boolean nuGetDeleteAllowed) Runs validation when enabling/disabling the "nuget delete" command for use in freestyle projects.In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.
- Parameters:
nuGetDeleteAllowed- The checked state of the relevant checkbox on the configuration page.- Returns:
- The validation result; either "OK" or a warning indicating the command is still in use.
-
isNuGetDeleteAllowed
public boolean isNuGetDeleteAllowed()Determines whether the "nuget delete" command should be available for use in freestyle projects.- Returns:
trueif the command should be available;falseotherwise.
-
setNuGetDeleteAllowed
@DataBoundSetter public void setNuGetDeleteAllowed(boolean allowed) Determines whether the "nuget delete" command should be available for use in freestyle projects.- Parameters:
allowed-trueif the command should be available;falseotherwise.
-
doCheckNuGetLocalsAllowed
@NonNull @POST public FormValidation doCheckNuGetLocalsAllowed(@QueryParameter boolean nuGetLocalsAllowed) Runs validation when enabling/disabling the "nuget locals" command for use in freestyle projects.In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.
- Parameters:
nuGetLocalsAllowed- The checked state of the relevant checkbox on the configuration page.- Returns:
- The validation result; either "OK" or a warning indicating the command is still in use.
-
isNuGetLocalsAllowed
public boolean isNuGetLocalsAllowed()Determines whether the "nuget locals" command should be available for use in freestyle projects.- Returns:
trueif the command should be available;falseotherwise.
-
setNuGetLocalsAllowed
@DataBoundSetter public void setNuGetLocalsAllowed(boolean allowed) Determines whether the "nuget locals" command should be available for use in freestyle projects.- Parameters:
allowed-trueif the command should be available;falseotherwise.
-
doCheckNuGetPushAllowed
@NonNull @POST public FormValidation doCheckNuGetPushAllowed(@QueryParameter boolean nuGetPushAllowed) Runs validation when enabling/disabling the "nuget push" command for use in freestyle projects.In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.
- Parameters:
nuGetPushAllowed- The checked state of the relevant checkbox on the configuration page.- Returns:
- The validation result; either "OK" or a warning indicating the command is still in use.
-
isNuGetPushAllowed
public boolean isNuGetPushAllowed()Determines whether the "nuget push" command should be available for use in freestyle projects.- Returns:
trueif the command should be available;falseotherwise.
-
setNuGetPushAllowed
@DataBoundSetter public void setNuGetPushAllowed(boolean allowed) Determines whether the "nuget push" command should be available for use in freestyle projects.- Parameters:
allowed-trueif the command should be available;falseotherwise.
-
doCheckPackAllowed
Runs validation when enabling/disabling the "pack" command for use in freestyle projects.In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.
- Parameters:
packAllowed- The checked state of the relevant checkbox on the configuration page.- Returns:
- The validation result; either "OK" or a warning indicating the command is still in use.
-
isPackAllowed
public boolean isPackAllowed()Determines whether the "pack" command should be available for use in freestyle projects.- Returns:
trueif the command should be available;falseotherwise.
-
setPackAllowed
@DataBoundSetter public void setPackAllowed(boolean allowed) Determines whether the "pack" command should be available for use in freestyle projects.- Parameters:
allowed-trueif the command should be available;falseotherwise.
-
doCheckPublishAllowed
Runs validation when enabling/disabling the "publish" command for use in freestyle projects.In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.
- Parameters:
publishAllowed- The checked state of the relevant checkbox on the configuration page.- Returns:
- The validation result; either "OK" or a warning indicating the command is still in use.
-
isPublishAllowed
public boolean isPublishAllowed()Determines whether the "publish" command should be available for use in freestyle projects.- Returns:
trueif the command should be available;falseotherwise.
-
setPublishAllowed
@DataBoundSetter public void setPublishAllowed(boolean allowed) Determines whether the "publish" command should be available for use in freestyle projects.- Parameters:
allowed-trueif the command should be available;falseotherwise.
-
doCheckRestoreAllowed
Runs validation when enabling/disabling the "restore" command for use in freestyle projects.In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.
- Parameters:
restoreAllowed- The checked state of the relevant checkbox on the configuration page.- Returns:
- The validation result; either "OK" or a warning indicating the command is still in use.
-
isRestoreAllowed
public boolean isRestoreAllowed()Determines whether the "restore" command should be available for use in freestyle projects.- Returns:
trueif the command should be available;falseotherwise.
-
setRestoreAllowed
@DataBoundSetter public void setRestoreAllowed(boolean allowed) Determines whether the "restore" command should be available for use in freestyle projects.- Parameters:
allowed-trueif the command should be available;falseotherwise.
-
isTelemetryOptOut
public boolean isTelemetryOptOut()Determines whether the telemetry opt-out is set.- Returns:
truewhen the telemetry opt-out is set;falseotherwise.
-
setTelemetryOptOut
@DataBoundSetter public void setTelemetryOptOut(boolean telemetryOptOut) Determines whether the telemetry opt-out should be set.- Parameters:
telemetryOptOut-trueto opt out of telemetry;falseotherwise.
-
doCheckTestAllowed
Runs validation when enabling/disabling the "test" command for use in freestyle projects.In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.
- Parameters:
testAllowed- The checked state of the relevant checkbox on the configuration page.- Returns:
- The validation result; either "OK" or a warning indicating the command is still in use.
-
isTestAllowed
public boolean isTestAllowed()Determines whether the "test" command should be available for use in freestyle projects.- Returns:
trueif the command should be available;falseotherwise.
-
setTestAllowed
@DataBoundSetter public void setTestAllowed(boolean allowed) Determines whether the "test" command should be available for use in freestyle projects.- Parameters:
allowed-trueif the command should be available;falseotherwise.
-
doCheckToolRestoreAllowed
@NonNull @POST public FormValidation doCheckToolRestoreAllowed(@QueryParameter boolean toolRestoreAllowed) Runs validation when enabling/disabling the "tool restore" command for use in freestyle projects.In particular, when disabling the command, this will check to see whether there are any freestyle projects currently using the command.
- Parameters:
toolRestoreAllowed- The checked state of the relevant checkbox on the configuration page.- Returns:
- The validation result; either "OK" or a warning indicating the command is still in use.
-
isToolRestoreAllowed
public boolean isToolRestoreAllowed()Determines whether the "tool restore" command should be available for use in freestyle projects.- Returns:
trueif the command should be available;falseotherwise.
-
setToolRestoreAllowed
@DataBoundSetter public void setToolRestoreAllowed(boolean allowed) Determines whether the "tool restore" command should be available for use in freestyle projects.- Parameters:
allowed-trueif the command should be available;falseotherwise.
-