Download - Jenkins Workflow - An Introduction
![Page 1: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/1.jpg)
Jenkins WorkflowAn Introduction
![Page 2: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/2.jpg)
● Definition● Current Landscape● Jenkins Workflow Plugin● Where does it fit in?
Agenda
![Page 3: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/3.jpg)
“an orchestrated and repeatable pattern of business activity enabled by the systematic organization of resources into processes that transform materials, provide services, or process information” - Wikipedia
“a bullshit management word for a process in which they don’t understand” - Urban Dictionary
Definition
![Page 4: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/4.jpg)
3rd Party Plugins● Promoted Builds Plugin● Build Flow Plugin● Build Pipeline Plugin● Parameterized Trigger Plugin
Built-in Plugins● Post-build Action (job chaining)
Current landscape
![Page 5: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/5.jpg)
Issues
![Page 6: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/6.jpg)
● Officially supported ● Unification of previous approaches● Define build workflows in code (Groovy)● Some DSL elements
Jenkins Workflow Plugin
![Page 7: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/7.jpg)
● Suspendable (and resumable)● Define workflow ‘stages’● Complex logic (try/catch, parallel jobs, concurrency)● Human approval (e.g. ready to deploy?)● Visualisation (basic)● Snippet generator
Features
![Page 8: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/8.jpg)
● Global codebase (across projects)● Entire workflow in a single job● Test your workflow code(?)
What this gives us
![Page 9: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/9.jpg)
Classic Jenkins Workflow
![Page 10: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/10.jpg)
Improved… (Jenkins Job Builder)
![Page 11: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/11.jpg)
Further Improved... (Jenkins Job Builder + Jenkins Workflow Plugin)
![Page 12: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/12.jpg)
● http://udaypal.com/2015-04-08-continuous-delivery-using-jenkins-workflow/
● http://udaypal.com/jenkins-workflow-getting-started/
Want to find out more?
![Page 13: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/13.jpg)
Vagrant VM with Jenkins + plugins:❏ https://github.com/bsnape/vagrant-jenkins
Example workflow code: ❏ https://github.com/bsnape/jenkins-workflow-example
![Page 14: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/14.jpg)
Workflow plugin announcement: ❏ http://jenkins-ci.org/content/workflow-plugin-10
Tour of features and working example:❏ http://udaypal.com/2015-04-08-continuous-delivery-using-jenkins-workflow/❏ http://udaypal.com/jenkins-workflow-getting-started/
![Page 15: Jenkins Workflow - An Introduction](https://reader034.vdocument.in/reader034/viewer/2022042600/587b51d61a28abff1a8b60c7/html5/thumbnails/15.jpg)