Ben1980 / jenkinsexample

Jenkins example setup discussed on thoughts-on-cpp

Home Page:https://thoughts-on-coding.com/2019/03/27/introduction-into-build-automation-setup-with-jenkins-and-cmake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JenkinsExample

A jenkins build automation example, as discussed on thoughts-on-coding.com for a C++/Qt desktop application utilizing CMake, CTest and CPPCheck.

Getting Started

This is a very basic build setup defined with jenkins declarative pipeline. It's using CMake for the build process, CTest for executing the tests and CPPCheck for static code analysis

Prerequisites

  • C++11
  • Qt5 as UI-Framework
  • Catch2 as Testing-Framework
  • Vcpkg as Package Manager
  • CPPCheck as Static Code Analyzer
  • Jenkins as Build Orchestrator with CMake and CPPCheck plugin

Important to note is that CMake needs the Vcpkg toolchain file to resolve the necessary dependencies

-DCMAKE_TOOLCHAIN_FILE={YOUR_PATH_TO_VCPKG}/vcpkg/scripts/buildsystems/vcpkg.cmake

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Jenkins example setup discussed on thoughts-on-cpp

https://thoughts-on-coding.com/2019/03/27/introduction-into-build-automation-setup-with-jenkins-and-cmake

License:MIT License


Languages

Language:C++ 53.4%Language:CMake 46.6%