azure-pipelines-task-lib 3.3.1 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -22
- package/README.md +74 -74
- package/Strings/resources.resjson/de-DE/resources.resjson +34 -34
- package/Strings/resources.resjson/es-ES/resources.resjson +34 -34
- package/Strings/resources.resjson/fr-FR/resources.resjson +34 -34
- package/Strings/resources.resjson/ja-JP/resources.resjson +34 -34
- package/ThirdPartyNotice.txt +1114 -1114
- package/internal.d.ts +130 -130
- package/internal.js +885 -885
- package/lib.json +37 -37
- package/mock-answer.d.ts +58 -55
- package/mock-answer.js +41 -41
- package/mock-run.d.ts +44 -44
- package/mock-run.js +92 -92
- package/mock-task.d.ts +112 -111
- package/mock-task.js +451 -447
- package/mock-test.d.ts +28 -28
- package/mock-test.js +298 -298
- package/mock-toolrunner.d.ts +41 -41
- package/mock-toolrunner.js +268 -268
- package/package.json +49 -49
- package/task.d.ts +728 -718
- package/task.js +2023 -2003
- package/taskcommand.d.ts +10 -10
- package/taskcommand.js +103 -103
- package/toolrunner.d.ts +159 -159
- package/toolrunner.js +967 -967
- package/vault.d.ts +10 -10
- package/vault.js +71 -71
package/mock-task.d.ts
CHANGED
|
@@ -1,111 +1,112 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import Q = require('q');
|
|
3
|
-
import fs = require('fs');
|
|
4
|
-
import task = require('./task');
|
|
5
|
-
import trm = require('./mock-toolrunner');
|
|
6
|
-
import ma = require('./mock-answer');
|
|
7
|
-
export declare function setAnswers(answers: ma.TaskLibAnswers): void;
|
|
8
|
-
export declare function setResourcePath(path: string): void;
|
|
9
|
-
export declare function loc(key: string, ...args: any[]): string;
|
|
10
|
-
export interface EndpointAuthorization {
|
|
11
|
-
parameters: {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
};
|
|
14
|
-
scheme: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class FsStats implements fs.Stats {
|
|
17
|
-
private m_isFile;
|
|
18
|
-
private m_isDirectory;
|
|
19
|
-
private m_isBlockDevice;
|
|
20
|
-
private m_isCharacterDevice;
|
|
21
|
-
private m_isSymbolicLink;
|
|
22
|
-
private m_isFIFO;
|
|
23
|
-
private m_isSocket;
|
|
24
|
-
dev: number;
|
|
25
|
-
ino: number;
|
|
26
|
-
mode: number;
|
|
27
|
-
nlink: number;
|
|
28
|
-
uid: number;
|
|
29
|
-
gid: number;
|
|
30
|
-
rdev: number;
|
|
31
|
-
size: number;
|
|
32
|
-
blksize: number;
|
|
33
|
-
blocks: number;
|
|
34
|
-
atime: Date;
|
|
35
|
-
mtime: Date;
|
|
36
|
-
ctime: Date;
|
|
37
|
-
birthtime: Date;
|
|
38
|
-
atimeMs: number;
|
|
39
|
-
mtimeMs: number;
|
|
40
|
-
ctimeMs: number;
|
|
41
|
-
birthtimeMs: number;
|
|
42
|
-
setAnswers(mockResponses: any): void;
|
|
43
|
-
isFile(): boolean;
|
|
44
|
-
isDirectory(): boolean;
|
|
45
|
-
isBlockDevice(): boolean;
|
|
46
|
-
isCharacterDevice(): boolean;
|
|
47
|
-
isSymbolicLink(): boolean;
|
|
48
|
-
isFIFO(): boolean;
|
|
49
|
-
isSocket(): boolean;
|
|
50
|
-
}
|
|
51
|
-
export declare function stats(path: string): FsStats;
|
|
52
|
-
export declare function exist(path: string): boolean;
|
|
53
|
-
export interface FsOptions {
|
|
54
|
-
encoding?: string;
|
|
55
|
-
mode?: number;
|
|
56
|
-
flag?: string;
|
|
57
|
-
}
|
|
58
|
-
export declare function writeFile(file: string, data: string | Buffer, options?: string | FsOptions): void;
|
|
59
|
-
export declare function osType(): string;
|
|
60
|
-
export declare function getPlatform(): task.Platform;
|
|
61
|
-
export declare function
|
|
62
|
-
export declare function
|
|
63
|
-
export declare function
|
|
64
|
-
export declare function
|
|
65
|
-
export declare function
|
|
66
|
-
export declare function
|
|
67
|
-
export declare function
|
|
68
|
-
export declare function
|
|
69
|
-
export declare function
|
|
70
|
-
export declare function
|
|
71
|
-
export declare function
|
|
72
|
-
export declare function
|
|
73
|
-
export declare function
|
|
74
|
-
export declare function
|
|
75
|
-
export declare function
|
|
76
|
-
export declare function
|
|
77
|
-
export declare function
|
|
78
|
-
export
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
export declare function
|
|
93
|
-
export declare
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
private
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export declare function
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import Q = require('q');
|
|
3
|
+
import fs = require('fs');
|
|
4
|
+
import task = require('./task');
|
|
5
|
+
import trm = require('./mock-toolrunner');
|
|
6
|
+
import ma = require('./mock-answer');
|
|
7
|
+
export declare function setAnswers(answers: ma.TaskLibAnswers): void;
|
|
8
|
+
export declare function setResourcePath(path: string): void;
|
|
9
|
+
export declare function loc(key: string, ...args: any[]): string;
|
|
10
|
+
export interface EndpointAuthorization {
|
|
11
|
+
parameters: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
scheme: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class FsStats implements fs.Stats {
|
|
17
|
+
private m_isFile;
|
|
18
|
+
private m_isDirectory;
|
|
19
|
+
private m_isBlockDevice;
|
|
20
|
+
private m_isCharacterDevice;
|
|
21
|
+
private m_isSymbolicLink;
|
|
22
|
+
private m_isFIFO;
|
|
23
|
+
private m_isSocket;
|
|
24
|
+
dev: number;
|
|
25
|
+
ino: number;
|
|
26
|
+
mode: number;
|
|
27
|
+
nlink: number;
|
|
28
|
+
uid: number;
|
|
29
|
+
gid: number;
|
|
30
|
+
rdev: number;
|
|
31
|
+
size: number;
|
|
32
|
+
blksize: number;
|
|
33
|
+
blocks: number;
|
|
34
|
+
atime: Date;
|
|
35
|
+
mtime: Date;
|
|
36
|
+
ctime: Date;
|
|
37
|
+
birthtime: Date;
|
|
38
|
+
atimeMs: number;
|
|
39
|
+
mtimeMs: number;
|
|
40
|
+
ctimeMs: number;
|
|
41
|
+
birthtimeMs: number;
|
|
42
|
+
setAnswers(mockResponses: any): void;
|
|
43
|
+
isFile(): boolean;
|
|
44
|
+
isDirectory(): boolean;
|
|
45
|
+
isBlockDevice(): boolean;
|
|
46
|
+
isCharacterDevice(): boolean;
|
|
47
|
+
isSymbolicLink(): boolean;
|
|
48
|
+
isFIFO(): boolean;
|
|
49
|
+
isSocket(): boolean;
|
|
50
|
+
}
|
|
51
|
+
export declare function stats(path: string): FsStats;
|
|
52
|
+
export declare function exist(path: string): boolean;
|
|
53
|
+
export interface FsOptions {
|
|
54
|
+
encoding?: string;
|
|
55
|
+
mode?: number;
|
|
56
|
+
flag?: string;
|
|
57
|
+
}
|
|
58
|
+
export declare function writeFile(file: string, data: string | Buffer, options?: string | FsOptions): void;
|
|
59
|
+
export declare function osType(): string;
|
|
60
|
+
export declare function getPlatform(): task.Platform;
|
|
61
|
+
export declare function getAgentMode(): task.AgentHostedMode;
|
|
62
|
+
export declare function cwd(): string;
|
|
63
|
+
export declare function cd(path: string): void;
|
|
64
|
+
export declare function pushd(path: string): void;
|
|
65
|
+
export declare function popd(): void;
|
|
66
|
+
export declare function checkPath(p: string, name: string): void;
|
|
67
|
+
export declare function mkdirP(p: any): void;
|
|
68
|
+
export declare function resolve(): string;
|
|
69
|
+
export declare function which(tool: string, check?: boolean): string;
|
|
70
|
+
export declare function ls(options: string, paths: string[]): string[];
|
|
71
|
+
export declare function cp(source: string, dest: string): void;
|
|
72
|
+
export declare function retry(func: Function, args: any[], retryOptions: task.RetryOptions): any;
|
|
73
|
+
export declare function find(findPath: string): string[];
|
|
74
|
+
export declare function rmRF(path: string): void;
|
|
75
|
+
export declare function mv(source: string, dest: string, force: boolean, continueOnError?: boolean): boolean;
|
|
76
|
+
export declare function exec(tool: string, args: any, options?: trm.IExecOptions): Q.Promise<number>;
|
|
77
|
+
export declare function execSync(tool: string, args: any, options?: trm.IExecSyncOptions): trm.IExecSyncResult;
|
|
78
|
+
export declare function tool(tool: string): trm.ToolRunner;
|
|
79
|
+
export interface MatchOptions {
|
|
80
|
+
debug?: boolean;
|
|
81
|
+
nobrace?: boolean;
|
|
82
|
+
noglobstar?: boolean;
|
|
83
|
+
dot?: boolean;
|
|
84
|
+
noext?: boolean;
|
|
85
|
+
nocase?: boolean;
|
|
86
|
+
nonull?: boolean;
|
|
87
|
+
matchBase?: boolean;
|
|
88
|
+
nocomment?: boolean;
|
|
89
|
+
nonegate?: boolean;
|
|
90
|
+
flipNegate?: boolean;
|
|
91
|
+
}
|
|
92
|
+
export declare function findMatch(defaultRoot: string, patterns: string[] | string): string[];
|
|
93
|
+
export declare function legacyFindFiles(rootDirectory: string, pattern: string, includeFiles?: boolean, includeDirectories?: boolean): string[];
|
|
94
|
+
export declare class TestPublisher {
|
|
95
|
+
testRunner: string;
|
|
96
|
+
constructor(testRunner: string);
|
|
97
|
+
publish(resultFiles?: string, mergeResults?: string, platform?: string, config?: string, runTitle?: string, publishRunAttachments?: string): void;
|
|
98
|
+
}
|
|
99
|
+
export declare class CodeCoveragePublisher {
|
|
100
|
+
constructor();
|
|
101
|
+
publish(codeCoverageTool?: string, summaryFileLocation?: string, reportDirectory?: string, additionalCodeCoverageFiles?: string): void;
|
|
102
|
+
}
|
|
103
|
+
export declare class CodeCoverageEnabler {
|
|
104
|
+
private buildTool;
|
|
105
|
+
private ccTool;
|
|
106
|
+
constructor(buildTool: string, ccTool: string);
|
|
107
|
+
enableCodeCoverage(buildProps: {
|
|
108
|
+
[key: string]: string;
|
|
109
|
+
}): void;
|
|
110
|
+
}
|
|
111
|
+
export declare function getHttpProxyConfiguration(requestUrl?: string): task.ProxyConfiguration | null;
|
|
112
|
+
export declare function getHttpCertConfiguration(): task.CertConfiguration | null;
|