jenkins-cli-node
Version:
Jenkins command line tool
25 lines (24 loc) • 576 B
TypeScript
import { JenkinsClientOptions } from "jenkins";
export interface CliOption {
lastJob: string;
config: JenkinsClientOptions;
}
export declare enum ParameterType {
git = 0,
checkbox = 1,
radio = 2
}
interface Parameter {
type: ParameterType;
key: string;
value: string;
}
export declare class JenkinsCli {
jenkins: any;
constructor(options: CliOption);
getJobs(): Promise<string[]>;
private getConfig;
getParameters(selectJob: any): Promise<Parameter[]>;
build(selectJob: any, parameters: any): Promise<any>;
}
export {};