My Azure DevOps pipeline pulls a Docker image and creates 5 containers. One container sets up the other 4 and then exits, indicating successful setup. However, Azure Pipelines marks the pipeline as failed due to the ‘Exited’ status, even though everything is functioning correctly.
My only fix is adding continueOnError: true
, but this only flags the pipeline with a warning. I also tried condition: succeededOrFailed()
, but it still marks the pipeline as failed.
Here is an example of the logs:
2024-07-01T14:47:08.8069778Z ##[error] Container airflow-postgres-1
Healthy2024-07-01T14:47:08.8073598Z ##[error] Container airflow-postgres-1
Healthy2024-07-01T14:47:08.8075304Z ##[error] Container airflow-redis-1
Healthy2024-07-01T14:47:18.3181399Z ##[error] Container
airflow-airflow-init-1 Exited Container airflow-airflow-init-1
Exited Container airflow-airflow-init-1 Exited
Any guidance or tips to handle this in the azure-pipelines.yml
would be most appreciated, I would love the pipeline to continue processing the Pipeline instead of marking as Exited thus generating a Failed job.