How to stop command line step if previous step fail?

Hi,
How to stop command line step if previous step fail? There is no parameter Execute step:= is all previous steps finished successfully. The same in mstest step. In my project command line step runs despite previous mstest step is failed. (I set exact text in build log = "Test Run Failed" in failure condition). So, mstest is fail but next command line step runs:

[11:15:49][Step 6/7] Test Run Failed.
  ...

[11:15:49][Step 6/7] Process exited with code 0
[11:15:49][Step 6/7] Waiting for 1 service processes to complete
[11:15:49][Step 6/7] MSTest report watcher
[11:15:49]Step 7/7: Create rar-archive (Command Line)
[11:15:50]Publishing internal artifacts
[11:15:50]Build failure condition: "Test Run Failed" text appeared in build log
[11:15:50]Build failure condition cause message: Test Run Failed. (show original message)
[11:15:50]Build finished
1 comment
Comment actions Permalink

Hi Oleg,

Please try to use "Only if build status is successful" execute step option. For more details please read the comment.

0

Please sign in to leave a comment.