Bruno Terkaly from Microsoft excellent series of 12 posts with in depth information on Azure Open Source Cross-Platform DevOps.
In the series author describes his take on how he would automate the building, testing, and deployment of applications for both Windows and Linux. He also provides code written in the Python to do this. Posts are very detailed and you will be able to follow them step by step.
The goal of the code base was to keep it as small and tight as possible so that you could take the work here and expand it to meet your needs.
Examples of pipelines in Jenkins, managing the state of these pipelines, MySQL setup scripts, Docker, pushing images to Docker Hub, concepts of image building, Unit tests, Mesos - including reasoning why certain technology or process was used - all is included.[Read More]