'Jenkins dotnet test
If the unit testing fails, the pipeline ends. I want to send the unit test results regardless of failure or success. I am using an "Execute Shell" build trigger. (and want to)
/dotnet/dotnet test --no-build --logger "trx;LogFileName=UnitTests.xml" /pathtotest
curl -X POST -H "Content-Type:application/xml" -d @/var/jenkins_home/workspace/MyJob/UnitTests.xml https://myendpoint.com
If the unit test fails, the curl command will not run because the pipeline ends with a failure. If the unit test succeeds, the curl command WILL run. It want it run regardless.
How do I do that?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
