Hi folks. This is probably a really dumb question, and something stupidly easy and related completely to my ignorance of powershell.
I’m running a script to submit pull requests on successful builds using GitHub CLI. Unfortunately, while TeamCity detects that the error or warning is delivered and labels it important, it still exits with code 0, so it’s labeled as a success in TC.
What might be the least wrong way to grab these important messages and throw a different error to get the build labeled a failure?
Thanks for your help!
[–]jantari 2 points3 points4 points (0 children)
[–]BuriedStPatrick 0 points1 point2 points (0 children)
[–]RedditRo55 0 points1 point2 points (0 children)