PhantomJS 1 on Dev@Cloud

Issue

  • I would like to install phantomjs 1 on my DEV@cloud environment

Environment

Resolution

For DEV@cloud the phantomjs binaries can be installed by downloading NPM, and installing using the NPM manager. You can use the following script below:

curl -s -o use-node https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/node/use-node
NODE_VERSION=0.11.8 . ./use-node
npm install phantomjs
ln -fs $WORKSPACE/node_modules/phantomjs/lib/phantom/bin/phantomjs $HOME/bin/phantomjs
phantomjs -v

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.