Cypress - Jenkins
Running Cypress tests in parallel with Jenkins and Currents Dashboard
Last updated
Running Cypress tests in parallel with Jenkins and Currents Dashboard
Last updated
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 image
Install the necessary dependencies: cypress
and cypress-cloud
Populate the environment variable CURRENTS_RECORD_KEY
using . Learn more about Record Key
Run 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: