BuildSpecBuilder

@cosmos-building-blocks/pipelineGlobalsBuildSpecBuilder

Hierarchy

  • BuildSpec

    BuildSpecBuilder

Index

Constructors

Properties

Methods

Constructors

constructor

+ new BuildSpecBuilder(): BuildSpecBuilder

Overrides void

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:63

Returns: BuildSpecBuilder

Properties

Readonly isImmediate

isImmediate: boolean

Overrides void

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:62


spec

spec: BuildSpecObject

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:63

Methods

addCachePaths

addCachePaths(...path: string[]): BuildSpecBuilder

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:140

Parameters:

NameType
...pathstring[]

Returns: BuildSpecBuilder


addCommands

addCommands(phase: Phase, ...commands: NullableString[]): BuildSpecBuilder

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:88

Parameters:

NameType
phasePhase
...commandsNullableString[]

Returns: BuildSpecBuilder


addEnvironmentVariables

addEnvironmentVariables(type: EnvironmentVariables, env: Record‹string, string›): BuildSpecBuilder

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:105

Parameters:

NameType
typeEnvironmentVariables
envRecord‹string, string›

Returns: BuildSpecBuilder


addExportedVariables

addExportedVariables(...name: NullableString[]): BuildSpecBuilder

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:112

Parameters:

NameType
...nameNullableString[]

Returns: BuildSpecBuilder


addFinallyCommands

addFinallyCommands(phase: Phase, ...commands: NullableString[]): BuildSpecBuilder

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:96

Parameters:

NameType
phasePhase
...commandsNullableString[]

Returns: BuildSpecBuilder


addReports

addReports(...report: Report[]): BuildSpecBuilder

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:133

Parameters:

NameType
...reportReport[]

Returns: BuildSpecBuilder


addRuntime

addRuntime(runtime: Runtime, version: Version): BuildSpecBuilder

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:79

Parameters:

NameType
runtimeRuntime
versionVersion

Returns: BuildSpecBuilder


addSecondaryArtifacts

addSecondaryArtifacts(...artifact: Artifact[]): BuildSpecBuilder

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:125

Parameters:

NameType
...artifactArtifact[]

Returns: BuildSpecBuilder


edit

edit(fn: function): BuildSpecBuilder

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:147

Parameters:

fn: function

▸ (spec: BuildSpecObject): BuildSpecObject | undefined

Parameters:

NameType
specBuildSpecObject

Returns: BuildSpecBuilder


setArtifact

setArtifact(artifact: Artifact): BuildSpecBuilder

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:119

Parameters:

NameType
artifactArtifact

Returns: BuildSpecBuilder


toBuildSpec

toBuildSpec(): string

Overrides void

Defined in packages/@cosmos-building-blocks/pipeline/src/build-spec.ts:75

Returns: string