Having a Bitbucket pipeline that executes 2 steps:
- Runs Python tests and saves report artifact in a XML file
- Runs SonarQube scanner with the above report file.
If every test is ok the SonarQube task runs and uploads everything.
If a single test fails the “SonarQube Scan” step doesn’t run as supposed.
Is it possible to run the “SonarQube Scan” step anyway without considering the failure of the previous one (test)?
Clearly the total execution of the pipeline should be considered as FAILED (RED) when tests fails.