@jameslnewell/buildkite-pipelines
Version:
Generate Buildkite pipelines from code.
60 lines (59 loc) • 1.63 kB
TypeScript
import { PluginSchema } from '../../schema';
import { PluginBuilder } from '../PluginBuilder';
interface DownloadInput {
from: string;
to: string;
}
interface UploadInput {
from: string;
to: string;
step?: string | undefined;
build?: string | undefined;
}
/**
* @see https://github.com/buildkite-plugins/artifacts-buildkite-plugin
*/
export declare class ArtifactsPlugin implements PluginBuilder {
#private;
static PLUGIN: string;
/**
* @deprecated Use .setCompressed() instead
*/
compressed(file: string): this;
setCompressed(file: string): this;
/**
* @deprecated Use .addDownload() instead
*/
download(file: string | DownloadInput): this;
/**
* @deprecated Use .addDownload() instead
*/
setDownload(glob: string | DownloadInput): this;
addDownload(glob: string | DownloadInput): this;
/**
* @deprecated Use .addUpload() instead
*/
upload(glob: string | UploadInput): this;
/**
* @deprecated Use .addUpload() instead
*/
setUpload(glob: string | UploadInput): this;
addUpload(glob: string | UploadInput): this;
/**
* @deprecated Use .setStep() instead
*/
step(id: string): this;
setStep(id: string): this;
/**
* @deprecated Use .setIgnoreMissing() instead
*/
ignoreMissing(ignore?: boolean): this;
setIgnoreMissing(ignore: boolean): this;
/**
* @deprecated Use .setSkipOnStatus() instead
*/
skipOnStatus(status: number): this;
setSkipOnStatus(status: number): this;
build(): PluginSchema | Promise<PluginSchema>;
}
export {};