Covered in this doc
Integrating Percy with your Jenkins CI environment
Start by configuring
PERCY_TOKEN, our project-specific, write-only API token. It can be found in your Percy project settings.
Depending on how you have Jenkins configured, there are a few options for configuring environment variables.
You can use the EnvInject plugin to set the token environment variable for a build.
Alternatively, you could export the variables as part of the build script:
export PERCY_TOKEN= # Now run your tests (just an example, this depends on the client library used): bundle exec rspec
Keep your Percy token secret
Anyone with access to your token can add builds to your project, though they cannot read data.
If your code is public, do not commit the PERCY_TOKEN to your code.