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

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
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

46 views 0 2
Read article

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