mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
jenkins. added term method (#30603)
* jenkins. added term method * jenkins. increased version
This commit is contained in:
committed by
Pranav Senthilnathan
parent
2529e72113
commit
62388f524c
Vendored
+3
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for jenkins 0.20
|
||||
// Type definitions for jenkins 0.23
|
||||
// Project: https://github.com/silas/node-jenkins
|
||||
// Definitions by: rhysd <https://rhysd.github.io>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -17,6 +17,7 @@ declare namespace create {
|
||||
log(name: string, n: number, start: number, type: 'text' | 'html', meta: boolean, callback: (err: Error, data: any) => void): void;
|
||||
logStream(name: string, n: number, type?: 'text' | 'html', delay?: number): NodeJS.ReadableStream;
|
||||
stop(name: string, n: number, callback: (err: Error) => void): void;
|
||||
term(name: string, n: number, callback: (err: Error) => void): void;
|
||||
};
|
||||
job: {
|
||||
build(name: string | JobBuildOptions, callback: (err: Error, data: any) => void): void;
|
||||
@@ -72,6 +73,7 @@ declare namespace create {
|
||||
log(name: string, n: number, start?: number, type?: 'text' | 'html', meta?: boolean): Promise<any>;
|
||||
logStream(name: string, n: number, type?: 'text' | 'html', delay?: number): Promise<any>;
|
||||
stop(name: string, n: number): Promise<void>;
|
||||
term(name: string, n: number): Promise<void>;
|
||||
};
|
||||
job: {
|
||||
build(name: string, parameters?: any, token?: string): Promise<any>;
|
||||
|
||||
@@ -38,6 +38,10 @@ jenkins.build.stop('example', 1, (err) => {
|
||||
if (err) throw err;
|
||||
});
|
||||
|
||||
jenkins.build.term('example', 1, (err) => {
|
||||
if (err) throw err;
|
||||
});
|
||||
|
||||
jenkins.job.build('example', (err, data) => {
|
||||
if (err) throw err;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user