Using Workflows to Schedule Jobs - CircleCI - 1 views
-
A workflow is a set of rules for defining a collection of jobs and their run order.
- ...37 more annotations...
-
Refer the YAML Anchors/Aliases documentation for information about how to alias and reuse syntax to keep your .circleci/config.yml file small.
-
jobs run according to configured requirements, each job waiting to start until the required job finishes successfully
-
fans-out to run a set of acceptance test jobs in parallel, and finally fans-in to run a common deploy job.
-
The name of the job to hold is arbitrary - it could be wait or pause, for example, as long as the job has a type: approval key in it.
-
Each workflow has an associated workspace which can be used to transfer files to downstream jobs as the workflow progresses.
-
Attaching the workspace downloads and unpacks each layer based on the ordering of the upstream jobs in the workflow graph.
-
Workflows that include jobs running on multiple branches may require data to be shared using workspaces
-
To persist data from a job and make it available to other jobs, configure the job to use the persist_to_workspace key.
-
Files and directories named in the paths: property of persist_to_workspace will be uploaded to the workflow’s temporary workspace relative to the directory specified with the root key.
-
To rerun only a workflow’s failed jobs, click the Workflows icon in the app and select a workflow to see the status of each job, then click the Rerun button and select Rerun from failed.
-
if you do not see your workflows triggering, a configuration error is preventing the workflow from starting.