Class UploadArtifactWith.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compressionLevel

        @Stability(Experimental)
        public UploadArtifactWith.Builder compressionLevel​(Number compressionLevel)
        Parameters:
        compressionLevel - The level of compression for Zlib to be applied to the artifact archive. The value can range from 0 to 9. For large files that are not easily compressed, a value of 0 is recommended for significantly faster uploads.
        Returns:
        this
      • ifNoFilesFound

        @Stability(Experimental)
        public UploadArtifactWith.Builder ifNoFilesFound​(String ifNoFilesFound)
        Parameters:
        ifNoFilesFound - The desired behavior if no files are found using the provided path. Available Options: warn: Output a warning but do not fail the action error: Fail the action with an error message ignore: Do not output any warnings or errors, the action does not fail
        Returns:
        this
      • overwrite

        @Stability(Experimental)
        public UploadArtifactWith.Builder overwrite​(Boolean overwrite)
        Parameters:
        overwrite - Whether action should overwrite an existing artifact with the same name (should one exist). Introduced in v4 and represents a breaking change from the behavior of the v3 action. To maintain backwards compatibility with existing, this should be set the true (the default).
        Returns:
        this
      • retentionDays

        @Stability(Experimental)
        public UploadArtifactWith.Builder retentionDays​(Number retentionDays)
        Parameters:
        retentionDays - Duration after which artifact will expire in days. 0 means using default repository retention. Minimum 1 day. Maximum 90 days unless changed from the repository settings page.
        Returns:
        this