My task is configured in bamboo like with 3 lines:
<pytest script>
Echo $?
exit 0
Now execution output observed as:
/nfs/tools/dtd/dtd_production_linux/swtools/6500/python/testsuite/py3_openroadm/netconf.py:83: Failed
generated xml file: /localdata/bamboo-agent-home/xml-data/build-dir/NBI-OWB21255-OS/testresult1.xml -
============= 2 failed, 42 passed, 12 warnings in 1333.56 seconds ============
1 --> this is echo $? output.
But Bamboo continue to run the same job. Ideally it should stop.