ThrowTheSwitch / Ceedling

Ruby-based unit testing and build system for C projects
http://throwtheswitch.org
Other
585 stars 246 forks source link

git , jenkins and unit test using ceedling #866

Open MNasser-iono opened 6 months ago

MNasser-iono commented 6 months ago

i want to automate the unit test case that use ceedling by jenkuns

mvandervoord commented 6 months ago

No problem! Ceedling can definitely be called by Jenkins as a command line tool and it has a variety of output reports to output in a format that Jenkins likes. What part of the process are you looking for help on?

MNasser-iono commented 6 months ago

the project i work at is a private repo , when i try to pull the code from the git , using jenkins , it can't because of the credentials, i tried all the method in in the internet , and it didn't work , and someone told me that jenkins won't see git and i should use bonobo local git instead

mvandervoord commented 6 months ago

Ah. I'm not really a jenkins expert. I believe that it CAN pull from git, but I'm sure there'd be an extra configuration step to tell it what your credentials are. Possibly the fix is to set up an SSH key specifically for your jenkins server?

In any case, this question falls outside of Ceedling. Once you've got git pulling your entire project. you should be able to run it on Ceedling. The setup instructions for getting Ceedling, Ruby, and other dependencies running on your Jenkins server should be the same as the normal installation instructions.