Class BlobStorePublisher

    • Constructor Detail

      • BlobStorePublisher

        @DataBoundConstructor
        public BlobStorePublisher​(String profileName,
                                  List<BlobStoreEntry> entries)
        Create a new Blobstore publisher for the configured profile identified by profileName
        Parameters:
        profileName - The name of the configured profile name.
        entries - The list of entries to be handled.
    • Method Detail

      • getEntries

        public List<BlobStoreEntry> getEntries()
        Get list of entries to be uploaded.
        Returns:
        The list of entries to be uploaded.
      • getProfile

        public BlobStoreProfile getProfile()
        Returns:
        - current profile for a profileName or returns the first one if the profileName isn't configured
      • getName

        public String getName()
      • setName

        public void setName​(String profileName)
      • perform

        public boolean perform​(AbstractBuild<?,​?> build,
                               Launcher launcher,
                               BuildListener listener)
                        throws InterruptedException,
                               IOException
        Perform the build step of uploading the configured file entries to the blobstore.
        • If the build result is failure, will not do anything except logging the stuff.
        • If the blobstore profile isn't configured, or the uploading failed, the build is set to be unstable.
        • If the upload is succesful, the build is set to be stable.
        Specified by:
        perform in interface BuildStep
        Overrides:
        perform in class BuildStepCompatibilityLayer
        Parameters:
        build - - reference to current build.
        launcher - - Launcher
        listener - - BuildListener
        Returns:
        Always returns true to indicate that build can continue, so we won't block other steps.
        Throws:
        InterruptedException - if the upload gets interrupted.
        IOException - if an IO error occurs.