Skip to main content
No Result Found
Get your setup working faster. Join our Discord for optimisation tips from elite testers. Join our DiscordJoin our Discord

Rerun tests on Jenkins

Configure the Jenkins integration so you can rerun failed tests from the Test Reporting & Analytics dashboard.

BrowserStack Test Reporting & Analytics lets you rerun failed tests directly from the dashboard after you integrate Jenkins. This removes the need to manually trigger Jenkins builds.

Before you proceed, complete the main setup to rerun failed tests: Rerun failed tests with Test Reporting & Analytics.

Configure the Jenkins integration

Each user who wants to trigger reruns must complete this setup:

  1. Go to the Jenkins integration page.
  2. Install or update the BrowserStack Jenkins plugin, version 1.2.7 or later:
    • In Jenkins, go to Manage Jenkins > Manage Plugins > Available.
    • Search for browserstack-integration.
    • Click Install or Upgrade, then restart Jenkins if prompted.
  3. Generate an API token:
    • In Jenkins, click your username in the top-right corner, then click Configure.
    • Under API Token, click Add new token, enter a name, then click Generate.
  4. In the BrowserStack integration form, enter your Jenkins Username and API Token so that BrowserStack can trigger jobs.
  5. Click Submit to save.

The BrowserStack Jenkins integration form with the username and API token fields filled in

Trigger reruns

After you complete the CI configuration, follow these steps to rerun failed test cases:

  1. Go to the Test listing to view failed test cases.
  2. Hover over the failed test name to display the action icons.
    The Test listing page with action icons displayed beside a failed test
  3. Click the rerun icon to open the rerun options.
    A failed test row with the rerun icon highlighted
    The Configure rerun screen showing the rerun options for the selected test

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle