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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to configure Build expiry with YAML Specs

As the title says, we are desperately looking for a way to configure the retention policy for a build through YAML Specs.

The build itself works fine, but we cannot fine any information on how to configure the build expiry. Docs in this regard is extremely sparse:

"Miscellaneous plugins are used for various additional functionalities for plans and jobs like Build expiry [...] You can configure these plugins from the Other tab in the web interface." - which you cannot, if you are using Specs. The documentation is simply wrong.
"Some miscellaneous plugins work only on the job level while other work only on the plan level. When you choose a plugin, make sure you’re configuring it on the right level.
In case a plugin doesn’t have a dedicated builder, you can use AllOtherPluginsConfiguration to provide configuration for such plugins as a workaround. Refer to plugin documentation to obtain a list of valid keys. Note that keys imported with AllOtherPluginsConfiguration are not validated."

The only example provided is:

Build binaries:
  ...
  other:
    clean-working-dir: true

The corresponding Java-Specs (for which the docs contain an example for build expiry...) would suggest the following structure:

AllOtherPluginsConfiguration:
  configuration:
    custom:
      buildExpiryConfig:
        duration: 1
        period: days

 

That only leads to:

Bamboo YAML import failed: Document structure is incorrect: Found following unused properties: plan / AllOtherPluginsConfiguration

or

Bamboo YAML import failed: Document structure is incorrect: Found following unused properties: AllOtherPluginsConfiguration

 

2 answers

would be great to get an answer to this one

I don't think it's possible yet.  The hint is when you set build expiry, then export as yaml, the diff is this comment:

other:

....

# Some plugin configurations are not supported by YAML Specs

 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.2 is here!

I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...

555 views 6 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you