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

Example usage of jython on Bamboo Configuration as Code

Gustavo Panizzo August 2, 2017

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

0 votes
Enrique Ramirez October 2, 2017

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
TAGS
AUG Leaders

Atlassian Community Events