Set-Content : Cannot process command because of one or more missing mandatory parameters: Value.

Answered

i want create txt file   and append text   in build step 

Set-Content "C:\TeamCity\buildAgent\work\9cd75eac43fe77f2\RecoverAirPro\Release\Error_Recovery_Compile.txt -Value Error: Actual CRC is not equal to CRC in file, please rebuild "

 

 

2 comments
Comment actions Permalink

This seems to work for me using the PowerShell runner. Are you having an issue when you run this step?

0
Comment actions Permalink

It could be that your quotes are throwing off the command. Try it like:

Set-Content C:\TeamCity\buildAgent\work\9cd75eac43fe77f2\RecoverAirPro\Release\Error_Recovery_Compile.txt -Value "Error: Actual CRC is not equal to CRC in file, please rebuild"
0

Please sign in to leave a comment.