azure-pipelines-task-lib 4.10.0 → 4.10.1
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/internal.js +6 -6
- package/package.json +1 -1
package/internal.js
CHANGED
|
@@ -20,7 +20,7 @@ var crypto = require("crypto");
|
|
|
20
20
|
* 3) to know the real variable name and not just the formatted env var name.
|
|
21
21
|
*/
|
|
22
22
|
exports._knownVariableMap = {};
|
|
23
|
-
var
|
|
23
|
+
var _commandCorrelationId;
|
|
24
24
|
//-----------------------------------------------------
|
|
25
25
|
// Enums
|
|
26
26
|
//-----------------------------------------------------
|
|
@@ -270,12 +270,12 @@ function _command(command, properties, message) {
|
|
|
270
270
|
exports._command = _command;
|
|
271
271
|
function _warning(message, source) {
|
|
272
272
|
if (source === void 0) { source = IssueSource.TaskInternal; }
|
|
273
|
-
_command('task.issue', { 'type': 'warning', 'source': source, '
|
|
273
|
+
_command('task.issue', { 'type': 'warning', 'source': source, 'correlationId': _commandCorrelationId }, message);
|
|
274
274
|
}
|
|
275
275
|
exports._warning = _warning;
|
|
276
276
|
function _error(message, source) {
|
|
277
277
|
if (source === void 0) { source = IssueSource.TaskInternal; }
|
|
278
|
-
_command('task.issue', { 'type': 'error', 'source': source, '
|
|
278
|
+
_command('task.issue', { 'type': 'error', 'source': source, 'correlationId': _commandCorrelationId }, message);
|
|
279
279
|
}
|
|
280
280
|
exports._error = _error;
|
|
281
281
|
function _debug(message) {
|
|
@@ -664,9 +664,9 @@ function _loadData() {
|
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
_debug('loaded ' + loaded);
|
|
667
|
-
var
|
|
668
|
-
delete process.env["
|
|
669
|
-
|
|
667
|
+
var correlationId = process.env["COMMAND_CORRELATION_ID"];
|
|
668
|
+
delete process.env["COMMAND_CORRELATION_ID"];
|
|
669
|
+
_commandCorrelationId = correlationId ? String(correlationId) : "";
|
|
670
670
|
// store public variable metadata
|
|
671
671
|
var names;
|
|
672
672
|
try {
|