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,552,675
Community Members
 
Community Events
184
Community Groups

Bamboo - Capabilities configuration is read-only because of specs

Hi guys,

I have a question regarding the agent management and its permissions in bamboo. The documentation and the found threads unfortunately didn't provide the crucial hint.

Preconditions:
-I'm using bamboo specs (yaml)
-I'm not the bamboo administrator


Problem:
While I try to deploy my already build artifact, the build fails because the used java version is not suitable:

[...]Exception in thread "main" java.lang.UnsupportedClassVersionError: <...> has been compiled by a more recent version of the Java Runtime (class file version 55.0),
this version of the Java Runtime only recognizes class file versions up to 52.0 [...]

I'm pretty sure this is related to the used bamboo agent. Sadly it seems like I can't change the used agent because I'm missing some permissions (I want to select an agent which uses Java 11 instead of 8):

 

1.png

 

Assumption:
For now, I guess it's needed to add some magic permission to the spec to be able to set the capability configuration on writable.

But I don't know which one is needed :)

 

currently, the permissions look like:

2.png

 

Thanks in advance guys.

1 answer

1 accepted

2 votes
Answer accepted
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 02, 2021

I think you don't need any additional permission here but to configure requirements for given evironment:

 

My environment:
tasks:
- clean
- artifact-download:
artifacts:
- {}
- script:
interpreter: SHELL
scripts:
- echo hello
requirements:
- java: '1.8'

Thanks, it seems to work like charm!

I didn't know that capabilities <-> requirements connection.

 

I managed to create a new capability, now I just need to find the correct name&value to get a suitable agent. But that's not within this question's scope.

SOLVED.

Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 02, 2021

It's confusing UX, message should say that requirement is not editable because of Specs. Will be fixed at future versions

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events