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,556,417
Community Members
 
Community Events
184
Community Groups

Java Spec for custom task types - unable to load properties

I'm trying to build a custom task plugin, I tried to follow provided documentation: https://developer.atlassian.com/server/bamboo/introduction-to-writing-tasks/

But unfortunately I ended with exception:

 

Class 'com.my.comapny.xxxxl.HadolintTaskProperties' is not allowed in YAML 

After some debugging I was able to identify that Yaml loader has a whitelisted namespaces which are allowed. I renamed my package to match required regexp but I ended with

exception=Class not found: com.my.comapny.xxxxl.HadolintTaskProperties

Looks like some classloader issue.

Plugin works totally fine, spec files are compilling, and exporter works fine (I can download JavaSpec files from plan edit section). 

 

2 answers

1 accepted

2 votes
Answer accepted
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Dec 02, 2019

You can enable this dark feature to make it work:

bamboo.experimental.specs.plugin.enabled

 You can do that using REST, for instance:

curl -X PUT <server_url>/rest/admin/latest/darkFeatures/bamboo.experimental.specs.plugin.enabled -u<user>:<password> -H "Content-Type: application/json" -d'{"key":"bamboo.experimental.specs.plugin.enabled","enabled":true}'

or by adding command line parameter at startup:

-Datlassian.darkfeature.bamboo.experimental.specs.plugin.enabled=true
1 vote
Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 29, 2020

Bamboo 7.2 is going to have this problem fixed.

Do you have an estimate for what time scale 7.2 will be released on? Days, weeks, months?

Steffen Opel _Utoolity_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Mar 28, 2021

Just to close the loop here, Bamboo 7.2 has been released November 23 2020 and indeed features various Bamboo Specs improvements including the one at hand:

We're introducing the any-task command thanks to which you can use tasks from any Marketplace app in Bamboo YAML Specs.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events