Cypress - Jenkins
Running Cypress tests in parallel with Jenkins and Currents Dashboard
Here's an example of Jenkins pipeline that is running cypress tests in parallel on 2 workers and is connected to Currents Dashboard for orchestrating the parallel runs and reporting the results.
The pipeline will be running 2 workers, based on cypress/base:16
Docker image. Those workers will run all the tests in parallel.
The steps are:
Use
cypress/base:18
as the base imageInstall the necessary dependencies:
cypress
andcypress-cloud
Populate the environment variable
CURRENTS_RECORD_KEY
using Jenkins Credentials Store. Learn more about Record KeyRun cypress tests on 2 workers, using CI Build ID for "connecting" the workers to the same parallel run. See Cypress Parallelization and CI Build ID.
Here's the full Jenkins pipeline configuration file:
Last updated