How to pass in parameters to grunt in Bamboo

Ryan Temple January 24, 2015

I have a bamboo Grunt task that I need to pass in some variables to.  I can add environment variables but I can't appear to pass in options so that grunt picks them up for use with the options API http://gruntjs.com/api/grunt.option .  Has anyone had any success with this?

2 answers

0 votes
Ryan Temple March 17, 2015

Yeah - basically you can add them after the task command in Bamboo. So if your task is called myTask

myTask --var1=$[bamboo.variableName} -var2=... etc.

and they will be substituted.

Doug MacKinnon March 17, 2015

Awesome - it looks like this is working for me too. Thanks for the quick reply!

0 votes
Doug MacKinnon March 17, 2015

Did you ever find the solution to this? I'm trying to do the same thing.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events