tfsbuild

Pass Secret Variable from TFS Build to Powershell script

旧街凉风 提交于 2021-02-07 05:49:06
问题 I have added secret variable called Password in my build definition as shown in this image: I want to pass the Password to the PowerShell script in one of my build steps as shown in this image: My PowerShell script looks like this Param ( [Parameter(Mandatory=$true)] [string]$UserName, [Parameter(Mandatory=$true)] [string]$Password ) $appPool = New-WebAppPool -Name "test" $appPool.processModel.userName = $userName $appPool.processModel.password = $password $appPool.processModel.identityType =

TFS write string message to build summary

强颜欢笑 提交于 2021-01-28 06:01:05
问题 I want to write string message to TFS build summary. I have a Powershell task with variable $output = $(Build.SourcesDirectory)\scripts\SCRIPT_NAME.ps1 $output that holds ===== Numb. of files for patch in: Win32 = 2 Win64 = 123 --- Numb. of original files: Win32 = 0 Win64 = 12 ===== that scheme is a whole message, now I just want to display it in a place that picture below points or in any other section as long as it is in "Summary" I took a look on this Stack question but it answers how to