I'm trying to use Jenkins as a CI/CB system (unit testing included) using headless Eclipse/TrueStudio for embedded C. There doesn't seem to be many examples for this, and even the Jenkins site itself doesn't have an example Jenkins file. I've used a CI like CircleCI before, but that was a terrible experience as they were transitioning from CircleCI 1.0 to 2.0 and the specific setup i was using was largely devoid of material. I spent over 100 commits linking Android Studio, Git, and Firebase together. Anyone have a C/C++ based example Jenkinsfile I can look at?
So far I've got this as a Jenkinsfile
:
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building..'
}
}
stage('Test') {
steps {
echo 'Testing..'
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
}
}
}
}
I'm using one machine for this as the project is small in size. The code is stored in a git repo on the same machine. We're using TrueStudio which is modified Eclipse, and has a headless mode bat file. One example from comments in bat file:
Example usage:
REM 1. Performs a rebuild on build configuration "config" for project "proj" in workspace "MyWorkspace".
REM Command: headless.bat -data C:\MyWorkspace -build proj/config
I'm currently working on syncing up the git repo and Jenkins.