The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get project name as Bamboo variable?

Stephen2Aus
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Stephen2Aus
Contributor
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 Champions.
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?

TAGS
AUG Leaders

Atlassian Community Events