Hello all,
I have a Bamboo job that runs a Python script, followed by a PowerShell script. What I am trying to figure out, is if the python script throws an exception (like below), how can I make the bamboo job terminate so it does not run the PowerShell script? I tried passing sys.exit(1) but bamboo still reads it as 0.
except Exception as error:
print(f"FAILED with the following error: {error} in the file: {filename}")
sys.exit(1)
build 03-Jan-2024 16:18:49 FAILED with the following error: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). in the file: Afilename.xlsx
simple 03-Jan-2024 16:18:49 Finished task 'Run Python: CreateUploadForm' with result: Success
Thank you!
Billy