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

This widget could not be displayed.

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 Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

250 views 1 3
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