Open phucgame opened 3 years ago
The BrowserStack Jenkins plugin will directly set the build name for the test. It sets the Environment variable BROWSERSTACK_BUILD_NAME.
@wati123321 Please help to review Here is full console log for specified build, then still failed with build not found ...
======================================== FSSCM.check completed in 12.686 seconds [BrowserStack] Local: Starting BrowserStack Local... [BrowserStack] Local: Started [BrowserStack] BROWSERSTACK_USERNAME=phuclegame1 [BrowserStack] BROWSERSTACK_ACCESS_KEY=**** [BrowserStack] BROWSERSTACK_BUILD=jenkins-project_aaa-7 [BrowserStack] BROWSERSTACK_BUILD_NAME=jenkins-project_aaa-7 [BrowserStack] BROWSERSTACK_LOCAL=true [BrowserStack] BROWSERSTACK_LOCAL_IDENTIFIER=53e3f298-5cd5-4b93-b3dd-4866acdddc46-project_aaa__7 [project_aaa] $ cmd /c call C:\Users\phuc\AppData\Local\Temp\jenkins8923147995851973098.bat
@phucgame You can generate the reports using the CLI functionality as mentioned in the following link, https://www.browserstack.com/docs/automate/cypress/generate-reports.
We will let you know once we have added support for Cypress reports in the Jenkins plugin. Meanwhile, you can use the above-mentioned method to generate reports using Cypress on BrowserStack.
I'm having the same issue trying to generate the report
[7/9/2021, 11:20:58 PM] - [31merror[39m: Generating report for the build 29 failed. with error:
{
"message": "Build not found"
}
[BrowserStack] Generating BrowserStack Cypress Test Report
[BrowserStack] BrowserStack Cypress Project identified as : AUTOMATE
[BrowserStack] [ERROR] BrowserStack Cypress Report not generated, build name mismatch.
[BrowserStack] BrowserStack Cypress Report Status: Failed
Finished: SUCCESS
@msilesgap You can generate HTML reports with Cypress at BrowserStack. Embedded reports within Jenkins is not supported at the moment.
For reference: https://www.browserstack.com/docs/automate/cypress/generate-reports
I am also getting the same error. How to set this variable in the parallel config JSON file for testNG?
Anyone got the solution for this problem, with Ruby 3.x I am getting same error...
if you are looking to generate Cypress Test Report with Browserstack using Cypress, I was able to generate it now with the below configuration in Jenkins
BROWSERSTACK_BUILD_NAME set by the BrowserStack plugin and i am still try to figure out if it can be send from the code or as variable (custom name)
BROWSERSTACK_BUILD_NAME (variable name) will need to be kept as is and cannot be modified to a custom name since the BrowserStack Plugin generates the Build Name (value) at runtime. This Build name is consumed by the BrowserStack Cypress Test Report Action to map the session on the BrowserStack Platform with the results to be published on Jenkins.
If you have any further queries with respect to the BrowserStack plugin, you may want to reach out to BrowserStack Support.
hey was this issue fixed? I am fixing the exact issue
@ hayaalresheq94
You can try and follow the steps mentioned by abhimanyu1589
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