Class ListPackage
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
io.jenkins.plugins.dotnet.commands.Command
io.jenkins.plugins.dotnet.commands.ListPackage
- All Implemented Interfaces:
 ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
A build step to run "
dotnet list package", showing a project's package dependencies.- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA descriptor for "dotnet list package" build steps.Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory - 
Field Summary
Fields inherited from class io.jenkins.plugins.dotnet.commands.Command
sdk, showSdkInfo, shutDownBuildServers, unstableIfErrors, unstableIfWarnings, workDirectoryFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdds command line arguments for this "dotnet list package" invocation.Gets theNuGet.configfile to use.Gets the sole target framework moniker to use.String[]Gets the target framework monikers to use.Gets the target framework monikers to use.Gets the project to list packages for.Gets the sole package source to use.String[]Gets the package sources to use.Gets the package sources to use.Gets the verbosity to use for the command.booleanDetermines whether deprecated packages should be shown.booleanDetermines whether to consider only packages where at most the minor version has changed.booleanDetermines whether to consider only packages where at most the patch version has changed.booleanDetermines whether to consider prerelease packages.booleanDetermines whether to show transitive dependencies.booleanDetermines whether outdated packages should be shown.booleanDetermines whether packages with known vulnerabilities should be shown.voidSets theNuGet.configfile to use.voidsetDeprecated(boolean deprecated) Determines whether deprecated packages should be shown.voidsetFramework(String framework) Sets the sole target framework moniker to use.voidsetFrameworks(String... frameworks) Sets the target framework monikers to use.voidsetFrameworksString(String frameworks) Sets the target framework monikers to use.voidsetHighestMinor(boolean highestMinor) Determines whether to consider only packages where at most the minor version has changed.voidsetHighestPatch(boolean highestPatch) Determines whether to consider only packages where at most the patch version has changed.voidsetIncludePrerelease(boolean includePrerelease) Determines whether to consider prerelease packages.voidsetIncludeTransitive(boolean includeTransitive) Determines whether to show transitive dependencies.voidsetOutdated(boolean outdated) Determines whether outdated packages should be shown.voidsetProject(String project) Sets the project to list packages for.voidSets the sole package source to use.voidsetSources(String... sources) Sets the package sources to use.voidsetSourcesString(String sources) Sets the package sources to use.voidsetVerbosity(String verbosity) Sets the verbosity to use for the command.voidsetVulnerable(boolean vulnerable) Determines whether packages with known vulnerabilities should be shown.Methods inherited from class io.jenkins.plugins.dotnet.commands.Command
getCharset, getDescriptor, getSdk, getSdkDescriptor, getWorkDirectory, isContinueOnError, isShowSdkInfo, isSpecificSdkVersion, perform, setCharset, setContinueOnError, setSdk, setShowSdkInfo, setSpecificSdkVersion, setWorkDirectoryMethods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace 
- 
Constructor Details
- 
ListPackage
@DataBoundConstructor public ListPackage()Creates a new "dotnet list package" build step. 
 - 
 - 
Method Details
- 
addCommandLineArguments
Adds command line arguments for this "dotnet list package" invocation.This adds:
list- The project specified via 
setProject(String). package--deprecated, if requested viasetDeprecated(boolean).--outdated, if requested viasetOutdated(boolean).- 
     
--framework xxxfor each target framework moniker specified viasetFramework(String),setFrameworks(String...)orsetFrameworksString(String). --include-transitive, if requested viasetIncludeTransitive(boolean).-v:xxx, if a verbosity has been specified viasetVerbosity(String).
--include-prerelease, if requested viasetIncludePrerelease(boolean).--highest-minor, if requested viasetHighestMinor(boolean).--highest-patch, if requested viasetHighestPatch(boolean).--config xxx, if a configuration file was specified viasetConfig(String).- 
     
--source xxxfor each source specified viasetSource(String),setSources(String...)orsetSourcesString(String). 
- Overrides:
 addCommandLineArgumentsin classCommand- Parameters:
 args- The current set of arguments.
 - 
getConfig
Gets theNuGet.configfile to use.- Returns:
 - The 
NuGet.configfile to use. 
 - 
setConfig
Sets theNuGet.configfile to use.- Parameters:
 config- TheNuGet.configfile to use.
 - 
isDeprecated
public boolean isDeprecated()Determines whether deprecated packages should be shown.- Returns:
 trueif deprecated packages should be shown;falseotherwise.
 - 
setDeprecated
@DataBoundSetter public void setDeprecated(boolean deprecated) Determines whether deprecated packages should be shown.- Parameters:
 deprecated-trueto show deprecated packages;falseotherwise.
 - 
getFramework
Gets the sole target framework moniker to use.- Returns:
 - The sole target framework moniker to use, or 
nullwhen there is not exactly one target framework moniker set. 
 - 
setFramework
Sets the sole target framework moniker to use.To set more than one, use
setFrameworks(String...)instead.- Parameters:
 framework- The sole target framework moniker to use.
 - 
getFrameworks
Gets the target framework monikers to use.- Returns:
 - The target framework monikers to use.
 
 - 
setFrameworks
Sets the target framework monikers to use.- Parameters:
 frameworks- The target framework monikers to use.
 - 
getFrameworksString
Gets the target framework monikers to use.- Returns:
 - The target framework monikers to use.
 
 - 
setFrameworksString
Sets the target framework monikers to use.- Parameters:
 frameworks- The target framework monikers to use.
 - 
isHighestMinor
public boolean isHighestMinor()Determines whether to consider only packages where at most the minor version has changed.- Returns:
 trueif only packages where at most the minor version has changed are considered;falseotherwise.
 - 
setHighestMinor
@DataBoundSetter public void setHighestMinor(boolean highestMinor) Determines whether to consider only packages where at most the minor version has changed.- Parameters:
 highestMinor-trueto only consider packages where at most the minor version has changed;falseotherwise.
 - 
isHighestPatch
public boolean isHighestPatch()Determines whether to consider only packages where at most the patch version has changed.- Returns:
 trueif only packages where at most the patch version has changed are considered;falseotherwise.
 - 
setHighestPatch
@DataBoundSetter public void setHighestPatch(boolean highestPatch) Determines whether to consider only packages where at most the patch version has changed.- Parameters:
 highestPatch-trueto only consider packages where at most the patch version has changed;falseotherwise.
 - 
isIncludePrerelease
public boolean isIncludePrerelease()Determines whether to consider prerelease packages.- Returns:
 trueif prerelease packages are considered;falseotherwise.
 - 
setIncludePrerelease
@DataBoundSetter public void setIncludePrerelease(boolean includePrerelease) Determines whether to consider prerelease packages.- Parameters:
 includePrerelease-trueto consider prerelease packages;falseotherwise.
 - 
isIncludeTransitive
public boolean isIncludeTransitive()Determines whether to show transitive dependencies.- Returns:
 trueif transitive dependencies are shown;falseotherwise.
 - 
setIncludeTransitive
@DataBoundSetter public void setIncludeTransitive(boolean includeTransitive) Determines whether to show transitive dependencies.- Parameters:
 includeTransitive-trueto show transitive dependencies;falseotherwise.
 - 
isOutdated
public boolean isOutdated()Determines whether outdated packages should be shown.- Returns:
 trueif outdated packages should be shown;falseotherwise.
 - 
setOutdated
@DataBoundSetter public void setOutdated(boolean outdated) Determines whether outdated packages should be shown.- Parameters:
 outdated-trueto show outdated packages;falseotherwise.
 - 
getProject
Gets the project to list packages for.- Returns:
 - The project to list packages for.
 
 - 
setProject
Sets the project to list packages for.- Parameters:
 project- The project to list packages for.
 - 
getSource
Gets the sole package source to use.- Returns:
 - The sole package source to use, or 
nullwhen there is not exactly one package source set. 
 - 
setSource
Sets the sole package source to use.To set more than one, use
setSources(String...)instead.- Parameters:
 source- The sole package source to use.
 - 
getSources
Gets the package sources to use.- Returns:
 - The package sources to use.
 
 - 
setSources
Sets the package sources to use.- Parameters:
 sources- The package sources to use.
 - 
getSourcesString
Gets the package sources to use.- Returns:
 - The package sources to use.
 
 - 
setSourcesString
Sets the package sources to use.- Parameters:
 sources- The package sources to use.
 - 
getVerbosity
Gets the verbosity to use for the command.- Returns:
 - The verbosity to use for the command.
 
 - 
setVerbosity
Sets the verbosity to use for the command.- Parameters:
 verbosity- The verbosity to use for the command.
 - 
isVulnerable
public boolean isVulnerable()Determines whether packages with known vulnerabilities should be shown.- Returns:
 trueif packages with known vulnerabilities should be shown;falseotherwise.
 - 
setVulnerable
@DataBoundSetter public void setVulnerable(boolean vulnerable) Determines whether packages with known vulnerabilities should be shown.- Parameters:
 vulnerable-trueto show packages with known vulnerabilities;falseotherwise.
 
 -