Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package io.github.cdklabs.projen.build;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.105.0 (build 0a2adcb)", date = "2024-11-15T17:03:55.033Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.projen.$Module.class, fqn = "projen.build.BuildWorkflow")
public class BuildWorkflow extends io.github.cdklabs.projen.Component {
protected BuildWorkflow(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected BuildWorkflow(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param project This parameter is required.
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public BuildWorkflow(final @org.jetbrains.annotations.NotNull io.github.cdklabs.projen.Project project, final @org.jetbrains.annotations.NotNull io.github.cdklabs.projen.build.BuildWorkflowOptions options) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(project, "project is required"), java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* (experimental) Adds another job to the build workflow which is executed after the build job succeeded.
*
* Jobs are executed only if the build did NOT self mutate. If the build
* self-mutate, the branch will either be updated or the build will fail (in
* forks), so there is no point in executing the post-build job.
*
* @param id The id of the new job. This parameter is required.
* @param job The job specification. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addPostBuildJob(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull io.github.cdklabs.projen.github.workflows.Job job) {
software.amazon.jsii.Kernel.call(this, "addPostBuildJob", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(job, "job is required") });
}
/**
* (experimental) Run a sequence of commands as a job within the build workflow which is executed after the build job succeeded.
*
* Jobs are executed only if the build did NOT self mutate. If the build
* self-mutate, the branch will either be updated or the build will fail (in
* forks), so there is no point in executing the post-build job.
*
* @param id This parameter is required.
* @param commands This parameter is required.
* @param options Specify tools and other options.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addPostBuildJobCommands(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull java.util.List commands, final @org.jetbrains.annotations.Nullable io.github.cdklabs.projen.build.AddPostBuildJobCommandsOptions options) {
software.amazon.jsii.Kernel.call(this, "addPostBuildJobCommands", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(commands, "commands is required"), options });
}
/**
* (experimental) Run a sequence of commands as a job within the build workflow which is executed after the build job succeeded.
*
* Jobs are executed only if the build did NOT self mutate. If the build
* self-mutate, the branch will either be updated or the build will fail (in
* forks), so there is no point in executing the post-build job.
*
* @param id This parameter is required.
* @param commands This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addPostBuildJobCommands(final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull java.util.List commands) {
software.amazon.jsii.Kernel.call(this, "addPostBuildJobCommands", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(commands, "commands is required") });
}
/**
* (experimental) Run a task as a job within the build workflow which is executed after the build job succeeded.
*
* The job will have access to build artifacts and will install project
* dependencies in order to be able to run any commands used in the tasks.
*
* Jobs are executed only if the build did NOT self mutate. If the build
* self-mutate, the branch will either be updated or the build will fail (in
* forks), so there is no point in executing the post-build job.
*
* @param task This parameter is required.
* @param options Specify tools and other options.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addPostBuildJobTask(final @org.jetbrains.annotations.NotNull io.github.cdklabs.projen.Task task, final @org.jetbrains.annotations.Nullable io.github.cdklabs.projen.build.AddPostBuildJobTaskOptions options) {
software.amazon.jsii.Kernel.call(this, "addPostBuildJobTask", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(task, "task is required"), options });
}
/**
* (experimental) Run a task as a job within the build workflow which is executed after the build job succeeded.
*
* The job will have access to build artifacts and will install project
* dependencies in order to be able to run any commands used in the tasks.
*
* Jobs are executed only if the build did NOT self mutate. If the build
* self-mutate, the branch will either be updated or the build will fail (in
* forks), so there is no point in executing the post-build job.
*
* @param task This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addPostBuildJobTask(final @org.jetbrains.annotations.NotNull io.github.cdklabs.projen.Task task) {
software.amazon.jsii.Kernel.call(this, "addPostBuildJobTask", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(task, "task is required") });
}
/**
* (experimental) Adds steps that are executed after the build.
*
* @param steps The job steps. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addPostBuildSteps(final @org.jetbrains.annotations.NotNull io.github.cdklabs.projen.github.workflows.JobStep... steps) {
software.amazon.jsii.Kernel.call(this, "addPostBuildSteps", software.amazon.jsii.NativeType.VOID, java.util.Arrays.