Overview
You may want to run the same job twice in a single workflow. This syntax applies a name
to jobs, which allows them to be called separately.
Syntax Examples
Job Names
workflows:
my-awesome-workflow:
jobs:
- build-1
- build-2:
name: first-build-2
- build-2:
name: second-build-2
Example Pipeline in the UI
Job Names with Requires
This example utilizes job names and requires
to re-run the same job twice in a workflow:
workflows:
my-awesome-workflow:
jobs:
- build-1
- build-2:
name: first-build-2
- build-2:
requires:
- first-build-2
Example Pipeline in the UI
Additional Resources
If you need to run a parameterized job twice in a workflow with different arguments, please refer to our documentation on utilizing Matrix Jobs:
Comments
Article is closed for comments.