Let's say that currently my CI/CD pipeline runs these two triggers after merging. (0
and 1
)
And in order to run Trigger production deployment
I need both to finish successfully. Is there a way to run them (Cypress E2E
and Python E2E
) separately, and wait for each to "enable" the "1 of 2" and "2 of 2" required conditions to then execute the deployment?
Synchronizing Cloud Builds to trigger a 3rd one can be done but it's complex.
However, it exists an option on Cloud Build to run steps in parallel. According to the documentation, you can do that
steps:
- name: ...
id: cypress
args: ...
- name: ...
id: python
args: ...
waitFor: ['-']
- name: ...
id: deploy
args: ...
waitFor: ['cypress','python']
If you need more CPU to run all the steps in parallel, you can configure the machine type