@jameslnewell/buildkite-pipelines
Version:
Generate Buildkite pipelines from code.
57 lines (56 loc) • 2.03 kB
TypeScript
import { StepDependsOn, TriggerStepSchema } from '../schema';
import { StepBuilder } from './StepBuilder';
import { BranchFilterBuilder } from './helpers/branches';
import { ConditionBuilder } from './helpers/condition';
import { DependenciesBuilder } from './helpers/dependencies';
import { KeyBuilder } from './helpers/key';
import { LabelBuilder } from './helpers/label';
import { SkipBuilder } from './helpers/skip';
export declare class TriggerStep implements KeyBuilder, StepBuilder, LabelBuilder, BranchFilterBuilder, ConditionBuilder, DependenciesBuilder, SkipBuilder {
#private;
setPipeline(pipeline: string): this;
setAsync(async: boolean): this;
setSoftFail(fail: boolean): this;
setBuild(build: TriggerStepSchema['build']): this;
getKey(): string | undefined;
/**
* @deprecated Use .setKey() instead
*/
key(key: string): this;
setKey(key: string): this;
getLabel(): string | undefined;
/**
* @deprecated Use .setLabel() instead
*/
label(label: string): this;
setLabel(label: string): this;
getBranches(): ReadonlyArray<string>;
/**
* @deprecated Use .addBranch() instead
*/
branch(branch: string): this;
addBranch(branch: string): this;
getCondition(): string | undefined;
/**
* @deprecated Use .setCondition() instead
*/
condition(condition: string): this;
setCondition(condition: string): this;
getDependencies(): ReadonlyArray<StepDependsOn>;
/**
* @deprecated Use .addDependency() instead
*/
dependOn(dependency: StepDependsOn): this;
addDependency(dependency: StepDependsOn): this;
/**
* @deprecated Use .setAllowDependencyFailure() instead
*/
allowDependencyFailure(allow: boolean): this;
setAllowDependencyFailure(allow: boolean): this;
/**
* @deprecated Use .setSkip() instead
*/
skip(skip: boolean | string): this;
setSkip(skip: boolean | string): this;
build(): TriggerStepSchema | Promise<TriggerStepSchema>;
}