Package io.github.cdklabs.projen.release
Class PublisherOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.release.PublisherOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PublisherOptions>
- Enclosing interface:
- PublisherOptions
@Stability(Experimental) public static final class PublisherOptions.Builder extends Object implements software.amazon.jsii.Builder<PublisherOptions>
A builder forPublisherOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
artifactName
@Stability(Experimental) public PublisherOptions.Builder artifactName(String artifactName)
Sets the value ofPublisherOptions.getArtifactName()- Parameters:
artifactName- The name of the artifact to download (e.g.dist). This parameter is required. The artifact is expected to include a subdirectory for each release target:go(GitHub),dotnet(NuGet),java(Maven),js(npm),python(PyPI).- Returns:
this
-
buildJobId
@Stability(Experimental) public PublisherOptions.Builder buildJobId(String buildJobId)
Sets the value ofPublisherOptions.getBuildJobId()- Parameters:
buildJobId- The job ID that produces the build artifacts. This parameter is required. All publish jobs will take a dependency on this job.- Returns:
this
-
condition
@Stability(Experimental) public PublisherOptions.Builder condition(String condition)
Sets the value ofPublisherOptions.getCondition()- Parameters:
condition- A GitHub workflow expression used as a condition for publishers.- Returns:
this
-
dryRun
@Stability(Experimental) public PublisherOptions.Builder dryRun(Boolean dryRun)
Sets the value ofPublisherOptions.getDryRun()- Parameters:
dryRun- Do not actually publish, only print the commands that would be executed instead. Useful if you wish to block all publishing from a single option.- Returns:
this
-
failureIssue
@Stability(Experimental) public PublisherOptions.Builder failureIssue(Boolean failureIssue)
Sets the value ofPublisherOptions.getFailureIssue()- Parameters:
failureIssue- Create an issue when a publish task fails.- Returns:
this
-
failureIssueLabel
@Stability(Experimental) public PublisherOptions.Builder failureIssueLabel(String failureIssueLabel)
Sets the value ofPublisherOptions.getFailureIssueLabel()- Parameters:
failureIssueLabel- The label to apply to the issue marking failed publish tasks. Only applies iffailureIssueis true.- Returns:
this
-
jsiiReleaseVersion
@Stability(Deprecated) @Deprecated public PublisherOptions.Builder jsiiReleaseVersion(String jsiiReleaseVersion)
Deprecated.use `publibVersion` insteadSets the value ofPublisherOptions.getJsiiReleaseVersion()- Parameters:
jsiiReleaseVersion- the value to be set.- Returns:
this
-
publibVersion
@Stability(Experimental) public PublisherOptions.Builder publibVersion(String publibVersion)
Sets the value ofPublisherOptions.getPublibVersion()- Parameters:
publibVersion- Version requirement forpublib.- Returns:
this
-
publishTasks
@Stability(Experimental) public PublisherOptions.Builder publishTasks(Boolean publishTasks)
Sets the value ofPublisherOptions.getPublishTasks()- Parameters:
publishTasks- Define publishing tasks that can be executed manually as well as workflows. Normally, publishing only happens within automated workflows. Enable this in order to create a publishing task for each publishing activity.- Returns:
this
-
workflowContainerImage
@Stability(Experimental) public PublisherOptions.Builder workflowContainerImage(String workflowContainerImage)
Sets the value ofPublisherOptions.getWorkflowContainerImage()- Parameters:
workflowContainerImage- Container image to use for GitHub workflows.- Returns:
this
-
workflowNodeVersion
@Stability(Experimental) public PublisherOptions.Builder workflowNodeVersion(String workflowNodeVersion)
Sets the value ofPublisherOptions.getWorkflowNodeVersion()- Parameters:
workflowNodeVersion- Node version to setup in GitHub workflows if any node-based CLI utilities are needed. For examplepublib, the CLI projen uses to publish releases, is an npm library.- Returns:
this
-
workflowRunsOn
@Stability(Experimental) public PublisherOptions.Builder workflowRunsOn(List<String> workflowRunsOn)
Sets the value ofPublisherOptions.getWorkflowRunsOn()- Parameters:
workflowRunsOn- Github Runner selection labels.- Returns:
this
-
workflowRunsOnGroup
@Stability(Experimental) public PublisherOptions.Builder workflowRunsOnGroup(GroupRunnerOptions workflowRunsOnGroup)
Sets the value ofPublisherOptions.getWorkflowRunsOnGroup()- Parameters:
workflowRunsOnGroup- Github Runner Group selection options.- Returns:
this
-
build
@Stability(Experimental) public PublisherOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PublisherOptions>- Returns:
- a new instance of
PublisherOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-