Use CircleCI version 2.1 at the top of your .circleci/config.yml file.
1
version: 2.1
Add the orbs
stanza below your version, invoking the orb:
1
2
orbs:
agent: percy/agent@0.1.3
Use agent
elements in your existing workflows and jobs.
Opt-in to use of uncertified orbs on your organization’s Security settings page.
Finalize all Percy builds
1
2
3
4
5
6
7
version: 2.1
orbs:
percy: percy/agent@1.0.0
workflows:
percy_finalize_all:
jobs:
- percy/finalize_all
Finalize all Percy builds
PARAMETER | DESCRIPTION | REQUIRED | DEFAULT | TYPE |
---|---|---|---|---|
percy_token | PERCY_TOKEN for your project. It is found on your project settings. | No | $PERCY_TOKEN | string |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This code is licensed from CircleCI to the user under the MIT license.
# See here for details: https://circleci.com/developer/orbs/licensing
version: "2.1"
description: Workflow for running Percy builds in parallel. Your token will be read from $PERCY_TOKEN by default, but this
can be overridden using the `percy_token` parameter.
examples:
finalize_all_percy_builds:
description: Finalize all Percy builds
usage:
version: 2.1
orbs:
percy: percy/agent@1.0.0
workflows:
percy_finalize_all:
jobs:
- percy/finalize_all
executors:
default:
docker:
- image: percyio/agent:latest
commands:
finalize_all:
description: Finalize all Percy builds
parameters:
percy_token:
description: PERCY_TOKEN for your project. It is found on your project settings.
type: string
default: $PERCY_TOKEN
steps:
- run: PERCY_TOKEN=<< parameters.percy_token >> percy finalize --all
jobs:
finalize_all:
executor: default
steps:
- finalize_all