Bamboo Script or Post Build Action?

Hi,

I am trying to integrate one of my build progresses into bamboo. But since the build needs some steps after a normal "mvn package" I wanted to add a script.

On my working environment I am running windows, so I simply wrote a little batch script, which compiled some class files, moved them to another bundle and finally zipped all up to a jar.

And exactly this progress needs to be represented within a bamboo build task.

Is there a possibility to add batch scripts to a bamboo (running on a linux machine) task?

What about the builder named "script"? What kind of script does it expect?

kind regards,

Sebastian

2 answers

1 accepted

This widget could not be displayed.

Assuming you're using Bamboo >=3.1: If you add a Script Task to your build, it will launch your script as a batch script on Windows and a shell script on Linux.

Hey unfortunately my company is still using version 2.0 build 801.

What is bamboo's default behavior about scripts in this version?


With 2.0, you can try installing a very old version of this plugin: https://plugins.atlassian.com/plugins/com.sysbliss.bamboo.plugins.prepost-build-command . Another solution would be to use the Script Builder to run the whole build, but that will amke Bamboo unaware of the fact that this is a Maven build - it should work though.

This widget could not be displayed.

And for new Bamboo releases you can also use groovy scripts: Bamboo Groovy Task Plugin

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 Friday in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

127 views 5 2
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