Skip to content

Problem while starting job in Jenkins with Browserstack Local option configured as true #29

Description

@shahzadskf

Hi,
I am having problem in configuring Browserstack Local option through Jenkins. I cannot execute the job when ‘Browserstack Local’ in 'Build Environment' is checked. When I run the job then following exception is displayed on Jenkins console:
[BrowserStack] Local: Starting BrowserStack Local...
FATAL: A JSONObject text must begin with '{' at 1 [character 2 line 1]
ERROR: Failed to parse POMs
java.io.IOException at com.browserstack.automate.ci.jenkins.BrowserStackBuildWrapper.setUp(BrowserStackBuildWrapper.java:61)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:667)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1727)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)

I have tried to execute the BrowserStackLocal binary on our host Jenkins machine using command:

./BrowserStackLocal --key MyPrivateAccessKey

I am getting following error message:
BrowserStackLocal: ../deps/uv/src/unix/linux-core.c:746: read_times: Assertion `num == numcpus' failed.

I have discussed this issue with my company DevOps expert, he figured out this is the bug on your side. Browserstack team should upgrade the libuv library in their linux build to at least v1.9.0. Otherwise, it won't run on any containers that limit the number of CPUs.
Kindly follow up this problem. Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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