Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Bamboo: Promoting a plan variable as metadata

Hi all,

I would like to use the maven version number during a maven release to be displayed in the metadata tab of bamboo. How do I do that?

On the metadata tab it says "You can specify your own metadata in the build process via add-ons.". But with this URL https://marketplace.atlassian.com/search?product=bamboo&query=metadata I can't find anything related to that.

Also I couldn't imagine that is that hard it is to specify own metadata within a Bamboo job.

Best regards,
Dieter

1 answer

0 votes
Jeremy Owen Atlassian Team Jul 05, 2018

Hey Dieter,

You can write out the maven variable number to a properties file during the build and use the Inject Bamboo variables task to read it back in:

Setting the scope of the variables to Result will ensure that anything is injected is available on the metadata tab of the job (also accessible by other stages in the plan, and releases created from that build result).

Hope this helps. :)

Hi Jeremy,

thanks for your response, that would help indeed. But I could not confirm that this is working for me. I am using the "Maven POM Value Extractor configuration" for fetching the GAV values and are storing them as Variable Type "Result".

On my metadata tab I don't see any such bamboo.maven.* variable.

Since which Bamboo version is this supported? I'm currently using 6.2.5 build 60212.

Here are the logs with respect to the POM Extractor:

simple 09-Jul-2018 07:21:17 Starting task 'Maven POM Value Extractor' of type 'com.davidehringer.atlassian.bamboo.maven.maven-pom-parser-plugin:maven-pom-parser-plugin'
simple 09-Jul-2018 07:21:17 Extracted groupId from POM. Setting RESULT variable maven.groupId to [XXXXXXXXXX]
simple 09-Jul-2018 07:21:17 Extracted artifactId from POM. Setting RESULT variable maven.artifactId to [XXXXXXXXXX]
simple 09-Jul-2018 07:21:17 Extracted version from POM. Setting RESULT variable maven.version to 0.0.2-SNAPSHOT
simple 09-Jul-2018 07:21:17 Finished task 'Maven POM Value Extractor' with result: Success

And here is the metadata tab of my build:

metadata.png

I think that's the Metadata tab for the plan. It should be in the metadata tab for the Job. :)

To do that, from the same screen; click the expander on the left hand side of the UI (it looks like a little >) to expand all the Jobs in the Build Result and then select the Job which has the POM Value Extractor > Metadata. Make sure to then scroll all the way down the page to the Variables section.

Hi Jeremy,

 

thanks for this tipp. I always have overseen that arrow.

(For me the arrow is on the left side though.)

 

Thanks a lot,
Dieter

Jeremy Owen Atlassian Team Jul 10, 2018

You're most welcome and my apologies. I certainly meant to say left hand side. I'll edit my response to correct it.

Suggest an answer

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

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

223 views 4 6
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