Skip to content

How to specify the environment variable BROWSERSTACK_BUILD_NAME to generate test report #25

@phucgame

Description

@phucgame
  • My sample project is using Jenkins triggers to run Browserstack Cypress by command:
    browserstack-cypress run

  • I installed Browserstack plugin in Jenkins. Follow steps but got failed at generating report as below:
    ========================================
    [BrowserStack] Generating BrowserStack Test Report
    [BrowserStack] BrowserStack Project identified as : AUTOMATE
    [BrowserStack] [ERROR] BrowserStackException occurred while fetching build: com.browserstack.automate.exception.AutomateException: Build not found by name: jenkins-project_aaa-7
    [BrowserStack] BrowserStack Report Status: Failed
    ========================================

  • This is a warning but I don't know how to do
    ========================================
    This step will generate BrowserStack Test Report by utilising the build name from the environment variable BROWSERSTACK_BUILD_NAME set by the BrowserStack plugin
    ========================================

Reference:
--> https://www.browserstack.com/docs/automate/selenium/jenkins?ref=jenkins_plugin#JenkinsUI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions