Class CommonPublishOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • postPublishSteps

        @Stability(Experimental)
        public CommonPublishOptions.Builder postPublishSteps​(List<? extends JobStep> postPublishSteps)
        Parameters:
        postPublishSteps - Steps to execute after executing the publishing command. These can be used to add/update the release artifacts ot any other tasks needed.

        Note that when using this in publishToGitHubReleases this will override steps added via addGitHubPostPublishingSteps.

        Returns:
        this
      • prePublishSteps

        @Stability(Experimental)
        public CommonPublishOptions.Builder prePublishSteps​(List<? extends JobStep> prePublishSteps)
        Parameters:
        prePublishSteps - Steps to execute before executing the publishing command. These can be used to prepare the artifact for publishing if neede. These steps are executed after dist/ has been populated with the build output.

        Note that when using this in publishToGitHubReleases this will override steps added via addGitHubPrePublishingSteps.

        Returns:
        this