Class Push
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
A build step to run "
dotnet nuget push", pushing a package to a server and publishing it.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA descriptor for "dotnet nuget push" 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.nuget.NuGetCommand
forceEnglishOutputFields 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 nuget push" invocation.getRoot()Gets the project to push packages for.Gets the symbol server API key to use.Gets the symbol server URL.Gets the timeout for pushing to a server, in seconds.booleanIndicates whether buffering should be disabled when pushing to an HTTP(S) source.booleanIndicates whether symbols will not get pushed even when present.booleanIndicates whether duplicates (409 Conflict responses) should be treated as warnings when pushing multiple packages to an HTTP(S) source, allowing the push to continue.voidsetDisableBuffering(boolean disableBuffering) Determine whether buffering should be disabled when pushing to an HTTP(S) source.voidsetNoSymbols(boolean noSymbols) Determine whether symbols will not get pushed even when present.voidSets the project to push packages for.voidsetSkipDuplicate(boolean skipDuplicate) Determine whether duplicates (409 Conflict responses) should be treated as warnings when pushing multiple packages to an HTTP(S) source, allowing the push to continue.voidsetSymbolApiKeyId(String symbolApiKeyId) Sets the symbol server API key to use.voidsetSymbolSource(String symbolSource) Sets the symbol server URL.voidsetTimeout(Integer timeout) Sets the timeout for pushing to a server, in seconds.Methods inherited from class io.jenkins.plugins.dotnet.commands.nuget.DeleteOrPush
getApiKeyId, getSource, isNoServiceEndpoint, setApiKeyId, setNoServiceEndpoint, setSourceMethods inherited from class io.jenkins.plugins.dotnet.commands.nuget.NuGetCommand
isForceEnglishOutput, setForceEnglishOutputMethods 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
-
Push
@DataBoundConstructor public Push()Creates a new "dotnet nuget push" build step.
-
-
Method Details
-
addCommandLineArguments
Adds command line arguments for this "dotnet nuget push" invocation.This adds:
- Any arguments added by
DeleteOrPush.addCommandLineArguments(DotNetArguments). - The package file path specified via
setRoot(String). --disable-buffering, if requested viasetDisableBuffering(boolean).--no-symbols, if requested viasetNoSymbols(boolean).--skip-duplicate, if requested viasetSkipDuplicate(boolean).--symbol-api-key xxx, if an API key was specified viasetSymbolApiKeyId(String).--symbol-source xxx, if a symbol source was specified viasetSymbolSource(String).--timeout nnn, if a timeout was specified viasetTimeout(Integer).
- Overrides:
addCommandLineArgumentsin classDeleteOrPush- Parameters:
args- The current set of arguments.- Throws:
AbortException- When something goes wrong.
- Any arguments added by
-
isDisableBuffering
public boolean isDisableBuffering()Indicates whether buffering should be disabled when pushing to an HTTP(S) source.- Returns:
truewhen buffering should be disabled when pushing to an HTTP(S) source;falseotherwise.
-
setDisableBuffering
@DataBoundSetter public void setDisableBuffering(boolean disableBuffering) Determine whether buffering should be disabled when pushing to an HTTP(S) source.- Parameters:
disableBuffering-trueto disable buffering when pushing to an HTTP(S) source;falseotherwise.
-
isNoSymbols
public boolean isNoSymbols()Indicates whether symbols will not get pushed even when present.- Returns:
truewhen symbols should not get pushed, even when present;falseotherwise.
-
setNoSymbols
@DataBoundSetter public void setNoSymbols(boolean noSymbols) Determine whether symbols will not get pushed even when present.- Parameters:
noSymbols-truenot to push symbols, even when present;falseotherwise.
-
getRoot
Gets the project to push packages for.- Returns:
- The project to push packages for.
-
setRoot
Sets the project to push packages for.- Parameters:
root- The project to push packages for.
-
isSkipDuplicate
public boolean isSkipDuplicate()Indicates whether duplicates (409 Conflict responses) should be treated as warnings when pushing multiple packages to an HTTP(S) source, allowing the push to continue.- Returns:
truewhen duplicates should be treated as warnings when pushing multiple packages;falseotherwise.
-
setSkipDuplicate
@DataBoundSetter public void setSkipDuplicate(boolean skipDuplicate) Determine whether duplicates (409 Conflict responses) should be treated as warnings when pushing multiple packages to an HTTP(S) source, allowing the push to continue.- Parameters:
skipDuplicate-trueto treat duplicates as warnings when pushing multiple packages;falseotherwise.
-
getSymbolApiKeyId
Gets the symbol server API key to use.- Returns:
- The symbol server API key to use.
-
setSymbolApiKeyId
Sets the symbol server API key to use.- Parameters:
symbolApiKeyId- The symbol server API key to use.
-
getSymbolSource
Gets the symbol server URL.- Returns:
- The symbol server URL.
-
setSymbolSource
Sets the symbol server URL.- Parameters:
symbolSource- The symbol server URL.
-
getTimeout
Gets the timeout for pushing to a server, in seconds.- Returns:
- The timeout for pushing to a server, in seconds.
-
setTimeout
Sets the timeout for pushing to a server, in seconds.- Parameters:
timeout- The timeout for pushing to a server, in seconds.
-