Package com.buildstash
Class BuildstashBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
com.buildstash.BuildstashBuilder
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,SimpleBuildStep
Post-build action for uploading build artifacts to Buildstash.
This allows the Buildstash upload functionality to be used as a post-build action in classic Jenkins projects.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested 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 interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNotes()voidvoidSetter that accepts Secret directly (for programmatic use).voidSetter that accepts String and converts to Secret.voidsetArchitectures(String architectures) voidsetCustomBuildNumber(String customBuildNumber) voidsetExpansionFilePath(String expansionFilePath) voidvoidvoidsetPlatform(String platform) voidsetPrimaryFilePath(String primaryFilePath) voidvoidsetStructure(String structure) voidsetVcBranch(String vcBranch) voidsetVcCommitSha(String vcCommitSha) voidsetVcCommitUrl(String vcCommitUrl) voidvoidsetVcHostType(String vcHostType) voidsetVcRepoName(String vcRepoName) voidsetVcRepoUrl(String vcRepoUrl) voidsetVersionComponent1Major(String versionComponent1Major) voidsetVersionComponent2Minor(String versionComponent2Minor) voidsetVersionComponent3Patch(String versionComponent3Patch) voidsetVersionComponentExtra(String versionComponentExtra) voidsetVersionComponentMeta(String versionComponentMeta) Methods inherited from class hudson.tasks.Recorder
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
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
-
BuildstashBuilder
@DataBoundConstructor public BuildstashBuilder()
-
-
Method Details
-
perform
public void perform(Run<?, ?> build, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-
getApiKey
-
setApiKey
Setter that accepts String and converts to Secret. This is the primary setter used by Jenkins pipeline scripts and forms. -
setApiKey
Setter that accepts Secret directly (for programmatic use). Note: This is NOT annotated with @DataBoundSetter to avoid DescribableModel trying to coerce String to Secret. Pipeline scripts will use the String overload. -
getStructure
-
setStructure
-
getPrimaryFilePath
-
setPrimaryFilePath
-
getExpansionFilePath
-
setExpansionFilePath
-
getVersionComponent1Major
-
setVersionComponent1Major
-
getVersionComponent2Minor
-
setVersionComponent2Minor
-
getVersionComponent3Patch
-
setVersionComponent3Patch
-
getVersionComponentExtra
-
setVersionComponentExtra
-
getVersionComponentMeta
-
setVersionComponentMeta
-
getCustomBuildNumber
-
setCustomBuildNumber
-
getLabels
-
setLabels
-
getArchitectures
-
setArchitectures
-
getVcHostType
-
setVcHostType
-
getVcHost
-
setVcHost
-
getVcRepoName
-
setVcRepoName
-
getVcRepoUrl
-
setVcRepoUrl
-
getVcBranch
-
setVcBranch
-
getVcCommitSha
-
setVcCommitSha
-
getVcCommitUrl
-
setVcCommitUrl
-
getPlatform
-
setPlatform
-
getStream
-
setStream
-
getNotes
-
setNotes
-