@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.923Z") @Stability(value=Experimental) public class Release extends Component
By default, no branches are released. To add branches, call addBranch().
| Modifier and Type | Class and Description |
|---|---|
static class |
Release.Builder
(experimental) A fluent builder for
Release. |
| Modifier | Constructor and Description |
|---|---|
|
Release(GitHubProject project,
ReleaseOptions options) |
protected |
Release(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Release(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBranch(String branch,
BranchOptions options)
(experimental) Adds a release branch.
|
void |
addJobs(Map<String,Job> jobs)
(experimental) Adds jobs to all release workflows.
|
List<String> |
getBranches()
(experimental) Retrieve all release branch names.
|
Publisher |
getPublisher()
(experimental) Package publisher.
|
void |
preSynthesize()
(experimental) Called before synthesis.
|
getProject, postSynthesize, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Release(software.amazon.jsii.JsiiObjectRef objRef)
protected Release(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Release(@NotNull
GitHubProject project,
@NotNull
ReleaseOptions options)
project - This parameter is required.options - This parameter is required.@Stability(value=Experimental)
public void addBranch(@NotNull
String branch,
@NotNull
BranchOptions options)
It is a git branch from which releases are published. If a project has more than one release
branch, we require that majorVersion is also specified for the primary branch in order to
ensure branches always release the correct version.
branch - The branch to monitor (e.g. `main`, `v2.x`). This parameter is required.options - Branch definition. This parameter is required.@Stability(value=Experimental)
public void addJobs(@NotNull
Map<String,Job> jobs)
jobs - The jobs to add (name => job). This parameter is required.@Stability(value=Experimental) public void preSynthesize()
preSynthesize in class Component@Stability(value=Experimental) @NotNull public List<String> getBranches()
@Stability(value=Experimental) @NotNull public Publisher getPublisher()
Copyright © 2021. All rights reserved.