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.Self
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
ConstructorDescriptionCreates 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.boolean
Determines whether the "build" command should be available for use in freestyle projects.boolean
Determines whether the "clean" command should be available for use in freestyle projects.boolean
Determines whether the "list package" command should be available for use in freestyle projects.boolean
Determines whether the "nuget delete" command should be available for use in freestyle projects.boolean
Determines whether the "nuget locals" command should be available for use in freestyle projects.boolean
Determines whether the "nuget push" command should be available for use in freestyle projects.boolean
Determines whether the "pack" command should be available for use in freestyle projects.boolean
Determines whether the "publish" command should be available for use in freestyle projects.boolean
Determines whether the "restore" command should be available for use in freestyle projects.boolean
Determines whether the telemetry opt-out is set.boolean
Determines whether the "test" command should be available for use in freestyle projects.boolean
Determines whether the "tool restore" command should be available for use in freestyle projects.void
setBuildAllowed
(boolean allowed) Determines whether the "build" command should be available for use in freestyle projects.void
setCleanAllowed
(boolean allowed) Determines whether the "clean" command should be available for use in freestyle projects.void
setListPackageAllowed
(boolean allowed) Determines whether the "list package" command should be available for use in freestyle projects.void
setNuGetDeleteAllowed
(boolean allowed) Determines whether the "nuget delete" command should be available for use in freestyle projects.void
setNuGetLocalsAllowed
(boolean allowed) Determines whether the "nuget locals" command should be available for use in freestyle projects.void
setNuGetPushAllowed
(boolean allowed) Determines whether the "nuget push" command should be available for use in freestyle projects.void
setPackAllowed
(boolean allowed) Determines whether the "pack" command should be available for use in freestyle projects.void
setPublishAllowed
(boolean allowed) Determines whether the "publish" command should be available for use in freestyle projects.void
setRestoreAllowed
(boolean allowed) Determines whether the "restore" command should be available for use in freestyle projects.void
setTelemetryOptOut
(boolean telemetryOptOut) Determines whether the telemetry opt-out should be set.void
setTestAllowed
(boolean allowed) Determines whether the "test" command should be available for use in freestyle projects.void
setToolRestoreAllowed
(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, getGlobalConfigPage
Methods 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:
getCategory
in 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:
true
if the command should be available;false
otherwise.
-
setBuildAllowed
@DataBoundSetter public void setBuildAllowed(boolean allowed) Determines whether the "build" command should be available for use in freestyle projects.- Parameters:
allowed
-true
if the command should be available;false
otherwise.
-
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:
true
if the command should be available;false
otherwise.
-
setCleanAllowed
@DataBoundSetter public void setCleanAllowed(boolean allowed) Determines whether the "clean" command should be available for use in freestyle projects.- Parameters:
allowed
-true
if the command should be available;false
otherwise.
-
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:
true
if the command should be available;false
otherwise.
-
setListPackageAllowed
@DataBoundSetter public void setListPackageAllowed(boolean allowed) Determines whether the "list package" command should be available for use in freestyle projects.- Parameters:
allowed
-true
if the command should be available;false
otherwise.
-
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:
true
if the command should be available;false
otherwise.
-
setNuGetDeleteAllowed
@DataBoundSetter public void setNuGetDeleteAllowed(boolean allowed) Determines whether the "nuget delete" command should be available for use in freestyle projects.- Parameters:
allowed
-true
if the command should be available;false
otherwise.
-
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:
true
if the command should be available;false
otherwise.
-
setNuGetLocalsAllowed
@DataBoundSetter public void setNuGetLocalsAllowed(boolean allowed) Determines whether the "nuget locals" command should be available for use in freestyle projects.- Parameters:
allowed
-true
if the command should be available;false
otherwise.
-
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:
true
if the command should be available;false
otherwise.
-
setNuGetPushAllowed
@DataBoundSetter public void setNuGetPushAllowed(boolean allowed) Determines whether the "nuget push" command should be available for use in freestyle projects.- Parameters:
allowed
-true
if the command should be available;false
otherwise.
-
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:
true
if the command should be available;false
otherwise.
-
setPackAllowed
@DataBoundSetter public void setPackAllowed(boolean allowed) Determines whether the "pack" command should be available for use in freestyle projects.- Parameters:
allowed
-true
if the command should be available;false
otherwise.
-
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:
true
if the command should be available;false
otherwise.
-
setPublishAllowed
@DataBoundSetter public void setPublishAllowed(boolean allowed) Determines whether the "publish" command should be available for use in freestyle projects.- Parameters:
allowed
-true
if the command should be available;false
otherwise.
-
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:
true
if the command should be available;false
otherwise.
-
setRestoreAllowed
@DataBoundSetter public void setRestoreAllowed(boolean allowed) Determines whether the "restore" command should be available for use in freestyle projects.- Parameters:
allowed
-true
if the command should be available;false
otherwise.
-
isTelemetryOptOut
public boolean isTelemetryOptOut()Determines whether the telemetry opt-out is set.- Returns:
true
when the telemetry opt-out is set;false
otherwise.
-
setTelemetryOptOut
@DataBoundSetter public void setTelemetryOptOut(boolean telemetryOptOut) Determines whether the telemetry opt-out should be set.- Parameters:
telemetryOptOut
-true
to opt out of telemetry;false
otherwise.
-
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:
true
if the command should be available;false
otherwise.
-
setTestAllowed
@DataBoundSetter public void setTestAllowed(boolean allowed) Determines whether the "test" command should be available for use in freestyle projects.- Parameters:
allowed
-true
if the command should be available;false
otherwise.
-
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:
true
if the command should be available;false
otherwise.
-
setToolRestoreAllowed
@DataBoundSetter public void setToolRestoreAllowed(boolean allowed) Determines whether the "tool restore" command should be available for use in freestyle projects.- Parameters:
allowed
-true
if the command should be available;false
otherwise.
-