Transcript
Page 1: Jenkins Workflow - An Introduction

Jenkins WorkflowAn Introduction

Page 2: Jenkins Workflow - An Introduction

● Definition● Current Landscape● Jenkins Workflow Plugin● Where does it fit in?

Agenda

Page 3: Jenkins Workflow - An Introduction

“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

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

Issues

Page 6: Jenkins Workflow - An Introduction

● Officially supported ● Unification of previous approaches● Define build workflows in code (Groovy)● Some DSL elements

Jenkins Workflow Plugin

Page 7: Jenkins Workflow - An Introduction

● 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

● Global codebase (across projects)● Entire workflow in a single job● Test your workflow code(?)

What this gives us

Page 9: Jenkins Workflow - An Introduction

Classic Jenkins Workflow

Page 10: Jenkins Workflow - An Introduction

Improved… (Jenkins Job Builder)

Page 11: Jenkins Workflow - An Introduction

Further Improved... (Jenkins Job Builder + Jenkins Workflow Plugin)

Page 12: Jenkins Workflow - An Introduction

● 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

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

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

Top Related