Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to run a Node.js build using Bamboo OnDemand

Mark Derbecker September 28, 2013

I have a Node.js build that uses grunt. I created a plan with a task that has a requirement for Node 0.10. (This requirement caused Bamboo to exclude Windows machines as agent candidates.)

Unfortunately, when the build runs, it cannot find npm. When I SSH into the elastic instance and try to run just "node", it is not found.

1 answer

1 vote
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 29, 2013

What about npm, can it find it? What if you type 'nodejs' instead of 'node'?

You can install missing packages or symlink existing binaries using instance setup script found on image configuration page.

Mark Derbecker October 5, 2013

It's not finding npm or nodejs... I'll take a look at the image configuration page

Mark Derbecker December 16, 2013

Ok, I'm back trying to get this working. I don't see where on the Image Configuration page I can do what you are suggesting.

I've also tried to get an Ubuntu instance running, because that's what we're using for development. Unfortunately that seems to just hang when it's trying to create the Elastic Agent. (I was thinking that if I could get Ubuntu running, I could execute an install script that put node and npm on the machine.)

Any suggestions would be welcome... I think I'm trying to do the simplest possible thing with Node, so surprised it's not working.

Mark Derbecker December 18, 2013

Looks like Node is not installed by default on Bamboo images.

I was able to add

apt-get update
apt-get install -y python-software-properties python g++ make
add-apt-repository -y ppa:chris-lea/node.js
apt-get update
apt-get install -y nodejs
apt-get install -y npm

to the 'Instance Startup Script' section of the 'Image Configuration' settings in Bamboo. That brought in the latest version of Node (0.10.xx).

Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 19, 2013

Node is in /opt/node-0.10 IIRC.

There will be a new, fixed Ubuntu image today or tomorrow. It will also carry a brand new node.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events