Example usage of jython on Bamboo Configuration as Code

Hello

 

i'm using a build plan to create more build plans using bamboo's configuration as code. so far so good.

what we're doing can be seen here

https://github.com/gfa/bamboo-plans

I want to improve this

99% of our plans do the same steps to test and build the code, but since is java code and we don't have any expertise on java we have one directory for each plan, duplicating the same code over and over.

I took a look at jython, or simply trying to make a general class using java and taking parameters but TBH i don't even know where to start.

 

Does anybody has anything better they can share?

 

thanks!

 

1 answer

This widget could not be displayed.

Hi Gustavo,

 

I am starting to use Bamboo as code. We are currently looking at jython. We are keeping as simple as a Main program that takes as argument a input file. The file describes the plan in english and the script parses the information and calls the Spec api to do the heavy lifting.  Because we only have a handful of plans; the need for making the jython script modular is not need it. 

 

Best of luck

 

Enrique

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

97 views 1 0
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you