When I run an Execute shell build step to execute a script and that script returns 0, Jenkins flags the build as SUCCESS, oth
Execute shell
0
Jenkins
SUCCESS
Create a wrapper for your shell script. Have that wrapper execute your tests and then set the resturn value according to whatever criteria you want.