adding CMake capability to Bamboo

Is there an example on how to add CMake capability to Bamboo? it is not as simple as providing the full path to cmake i.e. if we have the source under /home/test/code/myproject then the cmake command would be executed at directory level "code" like this:

rm -rf build_debug; mkdir build_debug; cd build_debug; cmake -DCMAKE_BUILD_TYPE=Debug ../myproject; make

I don't see how this can be fit as part of the Capability Type Executable ... any ideas?

1 answer

1 vote

you either need to make it a script and provide it on your agents or put it into an inline script task and Bamboo will make sure it's available everywhere.

Thank you for your answer but me being a newcomer to Bamboo it would be nicer if you could decipher a bit the details of your answer e.g. what do you mean with "provide it [a script] on your agents"? what is an "inline script task"? I could not find anything named as such in the Bamboo Administration and settings anywhere.

Actually the script taks is described here:

https://confluence.atlassian.com/display/BAMBOO/Script

but can't find such thing on my Bamboo installation. I can't find any tasks definitions anywhere only Add capability: Executable but this is NOT a script, e.g. if I place a bash script the commands will fail e.g. `source /opt/intel/bin/compilervars.sh intel64` will fail with error `source: not found`

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,087 views 0 5
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot