Open coderDem opened 9 years ago
Hi @coderDem ,
you could skip adding the full path (that is more for if you have built your own version) and then make sure the user running Jenkins have the module in the paths something like this:
export PATH="/usr/local/bin:$PATH"
or set it up Global properties in the Configure system part in Jenkins.
Best Peter
Ok I set an entry in Global properties. Are you mean like this:
Hi @coderDem ,
sorry didn't have Jenkins setup before. Ok so easiest I think is what you did in the first but you need to point out the exact file, so if you installed it globally it should be something like /usr/local/bin/sitespeed.io
or else point out the js file something like ...lib/node_modules/sitespeed.io/bin/sitespeed.js
Sorry again that I was unclear in my first answer. Best Peter
Hi @soulgalore,
no problem. Thank you for the tip. It works with pointing to .../bin/sitespeed.js.
Best coderDem
While running mvn package - i'm receiving
Sep 14, 2015 9:35:18 AM hudson.TcpSlaveAgentListener
Sep 14, 2015 9:35:18 AM org.mortbay.log.Slf4jLog info INFO: jetty-6.1.26 Sep 14, 2015 9:35:18 AM org.mortbay.log.Slf4jLog info INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet Sep 14, 2015 9:35:18 AM org.mortbay.log.Slf4jLog info INFO: Started SocketConnector@0.0.0.0:49763 Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 7.145 sec <<< FAILURE!
Results :
Tests in error: org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite(org.jvnet.hudson.test.junit.FailedTest): -1 testCliSanity(org.jvnet.hudson.test.PluginAutomaticTestBuilder$CliSanityTest): second instance
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0
Hello,
I set the full path to local sitespeed.io installation
But he can't find the module. So I get this error:
Couldn't store the file /srv/ci/workspace/Sitespeed.io_XXXXX/budget.jsonjava.io.FileNotFoundException: /srv/ci/workspace/Sitespeed.io_XXXXX/budget.json (No such file or directory) Couldn't close the writer for /srv/ci/workspace/Sitespeed.io_XXXXX/budget.jsonjava.lang.NullPointerException Will run executable'/srv/ci/workspace/Sitespeed.io_XXXXX/node_modules/sitespeed.io/bin/' with arguments: ['/srv/ci/workspace/Sitespeed.io_XXXXX/node_modules/sitespeed.io/bin/', -r, /srv/ci/workspace/Sitespeed.io_XXXXX/18/sitespeed-result, --junit, -u, https://google.com/, --budget, /srv/ci/workspace/Sitespeed.io_XXXXX/budget.json, -d, 0] java.io.IOException: Cannot run program "'/srv/ci/workspace/Sitespeed.io_XXXXX/node_modules/sitespeed.io/bin/'": error=2, No such file or directory
What can I do to provide the right path to the sitespeed.io ?