Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using CMake in YML file of Pipelines

adamrosenberg
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 6, 2018

Hello. Attempting to set up my project with Pipelines. Out setup process has always used cmake to allow it to be used on multiple platforms easily. However, cmake does not appear to be installed on the servers, nor can I apt-get cmake in my script without the the build seeming to freeze / go on forever. 

apt-get update -y

apt-get install cmake

 

Even if this did work I wouldn't find it very effective since it has to install cmake every time..Any advice? Should I try to migrate to a standard make for pipelines? CMake is basically integral to our software and I really would rather not go through changing. I'd also like to run pipelines exactly how our software is ran with cmake. 

 

I have been able to do a wget to get a tar file for cmake and i'm working on unpackaging and installing it etc. Would be more ocnvenient to hvaea cmake as software out of the box. Does this involve a custom image?

Thanks for reading, would love feedback

 

 

1 answer

0 votes
adamrosenberg
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 6, 2018
Aly Farahat
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 26, 2018

Hey Adam, it looks like the approach you found still has to download Cmake and dependencies every time the pipeline is invoked. So that did not fix the efficiency problem.

I would go with the DokkerHub approach referenced here https://bitbucket.org/site/master/issues/13404/add-an-example-cmake-configuration-file

Like Mark Manyen likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events