Teamcity interaction with powershell script -
i have powershell script runs ~30 minutes (waiting on various process' finish). @ end, writes message event log, determining if process success or failure. plan on hosting script on teamcity , want build fail, don't know how handle interaction between script , teamcity in order happen.
i'm looking way make powershell script ran remotely communicate teamcity whether failure or success. i've read on lot of teamcity documentation , i'm still not sure how start going this.
you should consider using teamcity service messages, or reporting build problems.
an example of how emit service message using powershell (assuming you're using powershell build step):
write-output "##teamcity[buildstatus text='i successful build']"
or
write-output "##teamcity[buildproblem description='$powershell_error_message']"
where can inject captured powershell error message.
Comments
Post a Comment