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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,151
Community Members
 
Community Events
184
Community Groups

Capability with space in name as a variable

I have as a capability "JDK 1.8" and "JDK1.8" (there is a space between the 'K' and the '1').  In a bamboo plan, I'm able to reference "${bamboo.capability.system.jdk.JDK1.8}" (no space) just fine.  However, I can't figure out how to reference the capability with a space.  (I believe that I've tried replacing the space with a '+', '\ ', and just a space.)  Is this possible?

Note related URLs: https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.htmlhttps://confluence.atlassian.com/display/BAMBOO034/Configuring+Remote+Agent+Capabilities+via+bamboo-capabilities.properties

Thanks.

 

3 answers

1 accepted

1 vote
Answer accepted
rverschoor
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.
Dec 02, 2015

Specifying the variable with a space works for me.
E.g. inline Script Task "echo capability=${bamboo.capability.system.jdk.JDK 1.8.0_45}"  (there's a space between the 'K' and the '1').

Tested in 5.9.7.

Has the behaviour for this changed? Using a space does not work for me.

The key is:

capabilityKey=system.jdk.JDK+11

I have tried:

${bamboo.capability.system.jdk.JDK 11}
${bamboo.capability.system.jdk.JDK_11}
${bamboo.capability.system.jdk.JDK${}11}

 They all fail with Bad substitution

Oops, I must have gotten confused with trying various capitalizations. Space does indeed work.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events