How to get project name as Bamboo variable?

Stephen2Aus September 12, 2017

Hi all, hope this is an easy one.  Didn't find it in help page: https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html

 

e.g., Project = MyCoolSoftware

Plan = master

 

I can get "master" with ${bamboo.shortPlanName}

 

How do I get "MyCoolSoftware"?

 

Thanks

 

 

2 answers

0 votes
Stephen2Aus September 14, 2017

Just in a command step, to create a nuget package (with no nuspec) based on the project name.

e.g.,:

Octo --create-package ${bamboo.projectName} ?

 

Can I use regex or scripts to parse things like bamboo.planName and create my own variables somehow?

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 13, 2017

There is no variable for project name. Maybe you can extract it from bamboo.planName.

Where are you trying to get it? In a script or in a plugin?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events