Skip to content

StartBuild

Source: src/AWS/CodeBuild/StartBuild.ts

Runtime binding for codebuild:StartBuild — lets a workload kick off a build of a CodeBuild project (optionally overriding the source version, environment variables, buildspec, etc.).

The response carries the created build including its id, which can be polled with the BatchGetBuilds binding.

const startBuild = yield* AWS.CodeBuild.StartBuild(project);
const { build } = yield* startBuild({
environmentVariablesOverride: [
{ name: "COMMIT", value: sha, type: "PLAINTEXT" },
],
});