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:

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/ intel64` will fail with error `source: not found`

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,810 views 0 6
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