Class BuildstashBuilder

All Implemented Interfaces:
ExtensionPoint, Describable<Publisher>, BuildStep, SimpleBuildStep

public class BuildstashBuilder extends Recorder implements 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.
  • 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:
      perform in interface SimpleBuildStep
      Throws:
      InterruptedException
      IOException
    • getApiKey

      public Secret getApiKey()
    • setApiKey

      @DataBoundSetter public void setApiKey(String apiKey)
      Setter that accepts String and converts to Secret. This is the primary setter used by Jenkins pipeline scripts and forms.
    • setApiKey

      public void setApiKey(Secret apiKey)
      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

      public String getStructure()
    • setStructure

      @DataBoundSetter public void setStructure(String structure)
    • getPrimaryFilePath

      public String getPrimaryFilePath()
    • setPrimaryFilePath

      @DataBoundSetter public void setPrimaryFilePath(String primaryFilePath)
    • getExpansionFilePath

      public String getExpansionFilePath()
    • setExpansionFilePath

      @DataBoundSetter public void setExpansionFilePath(String expansionFilePath)
    • getVersionComponent1Major

      public String getVersionComponent1Major()
    • setVersionComponent1Major

      @DataBoundSetter public void setVersionComponent1Major(String versionComponent1Major)
    • getVersionComponent2Minor

      public String getVersionComponent2Minor()
    • setVersionComponent2Minor

      @DataBoundSetter public void setVersionComponent2Minor(String versionComponent2Minor)
    • getVersionComponent3Patch

      public String getVersionComponent3Patch()
    • setVersionComponent3Patch

      @DataBoundSetter public void setVersionComponent3Patch(String versionComponent3Patch)
    • getVersionComponentExtra

      public String getVersionComponentExtra()
    • setVersionComponentExtra

      @DataBoundSetter public void setVersionComponentExtra(String versionComponentExtra)
    • getVersionComponentMeta

      public String getVersionComponentMeta()
    • setVersionComponentMeta

      @DataBoundSetter public void setVersionComponentMeta(String versionComponentMeta)
    • getCustomBuildNumber

      public String getCustomBuildNumber()
    • setCustomBuildNumber

      @DataBoundSetter public void setCustomBuildNumber(String customBuildNumber)
    • getLabels

      public String getLabels()
    • setLabels

      @DataBoundSetter public void setLabels(String labels)
    • getArchitectures

      public String getArchitectures()
    • setArchitectures

      @DataBoundSetter public void setArchitectures(String architectures)
    • getVcHostType

      public String getVcHostType()
    • setVcHostType

      @DataBoundSetter public void setVcHostType(String vcHostType)
    • getVcHost

      public String getVcHost()
    • setVcHost

      @DataBoundSetter public void setVcHost(String vcHost)
    • getVcRepoName

      public String getVcRepoName()
    • setVcRepoName

      @DataBoundSetter public void setVcRepoName(String vcRepoName)
    • getVcRepoUrl

      public String getVcRepoUrl()
    • setVcRepoUrl

      @DataBoundSetter public void setVcRepoUrl(String vcRepoUrl)
    • getVcBranch

      public String getVcBranch()
    • setVcBranch

      @DataBoundSetter public void setVcBranch(String vcBranch)
    • getVcCommitSha

      public String getVcCommitSha()
    • setVcCommitSha

      @DataBoundSetter public void setVcCommitSha(String vcCommitSha)
    • getVcCommitUrl

      public String getVcCommitUrl()
    • setVcCommitUrl

      @DataBoundSetter public void setVcCommitUrl(String vcCommitUrl)
    • getPlatform

      public String getPlatform()
    • setPlatform

      @DataBoundSetter public void setPlatform(String platform)
    • getStream

      public String getStream()
    • setStream

      @DataBoundSetter public void setStream(String stream)
    • getNotes

      public String getNotes()
    • setNotes

      @DataBoundSetter public void setNotes(String notes)