The general format for a logging command is:
##vso[area.action property1=value;property2=value;...]message
To invoke a logging command, simply emit the command via standard output. For example, from a PowerShell task:
Write-Host "##vso[task.setvariable variable=testvar;]testvalue"
Syntax | Property Name | Usage | Minimum Agent Version |
---|---|---|---|
|
|
Log error or warning issue to timeline record of current task. |
|
|
|
Set progress and current operation for current task. |
|
|
|
Finish timeline record for current task, set task result and current operation. When result not provided, set result to succeeded. |
1.95 |
|
|
Create and update detail timeline records. |
|
|
|
Sets a variable in the variable service of taskcontext. The first task can set a variable, and following tasks in the same phase are able to use the variable. The variable is exposed to the following tasks as an environment variable. When |
|
|
|
Set an endpoint field with given value. Value updated will be retained in the endpoint for the subsequent tasks that execute within the same job. |
|
|
|
Upload and attach attachment to current timeline record. These files are not available for download with logs. These can only be referred to by extensions using the type or name values. |
|
|
|
Upload and attach summary markdown to current timeline record. This summary shall be added to the build/release summary and not available for download with logs. |
0.5.6 |
|
|
Upload user interested file as additional log information to the current timeline record. The file shall be available for download along with task logs. |
1.101 |
|
|
Instruction for the agent to update the PATH environment variable. The specified directory is prepended
to the PATH. The updated environment variable will be reflected in subsequent tasks. |
2.115.0 |
Syntax | Property Name | Usage | Minimum Agent Version |
---|---|---|---|
|
|
Create an artifact link, artifact location is required to be a file container path, VC path or UNC share path. |
|
|
|
Upload local file into a file container folder, create artifact if |
Syntax | Property Name | Usage | Minimum Agent Version |
---|---|---|---|
|
|
Upload user interested log to build’s container “ |
|
|
|
Update build number for current build. |
1.88 |
|
|
Add a tag for current build. |
1.95 |
Syntax | Property Name | Usage | Minimum Agent Version |
---|---|---|---|
|
|
Update release name for current release. |
2.132 |