Blog Post

VSTS - Release configuration - Publish into log

Thursday, February 9, 2017 1:06 PM

Using VSTS when working with release sometimes there is need to preserve the information into log files.

 

Here is guide how to do this.

Param(
[string]$path
)
Get-ChildItem -Path $path -Recurse | Foreach-Object {
if ( $_.Attributes -eq 'Directory' )
{
Write-Verbose "Processing directory : $_" -vebose
}else {
Write-Verbose $_.FullName -verbose
$fullname = $_.FullName
Write-Verbose "##vso[task.uploadfile]$fullname" -verbose
}
}