Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shahzadskf opened this issue May 24, 2018 · 1 comment

Comments

@shahzadskf
Copy link

shahzadskf commented May 24, 2018

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!

@shahzadskf shahzadskf changed the title Problem while starting job in Jenkins Problem while starting job in Jenkins with Browserstack Local option configured as true May 25, 2018
@fmattheus
Copy link

See for example, this link:
nodejs/node#6252

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants