Take care batch error level only is valid for the last command and not a 
cumulative flag. So every msbuild command you run should check the error 
level result and exit batch according to it with proper error code. This 
will make the bat command failed properly. I personnaly would suggest, you 
run run each msbuild command into separated bat command so you will known 
which one failed, but that's totally up to you. Also make sure you give the 
proper  bat argument returnStatus into your pipeline scripts.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8b5daca4-a072-4d1e-b06d-fcd4aeefb356%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to