Slide 1

Slide 1 text

Demo. How to develop your Pipeline locally? Oleg Nenashev (@oleg_nenashev) CloudBees, Inc. Jenkins World Aug 30, 2017

Slide 2

Slide 2 text

© 2017 CloudBees, Inc. All Rights Reserved. 2 #JenkinsWorld About me @oleg_nenashev oleg-nenashev LibreCores project St. Petersburg Polytechnic University Jenkins meetups

Slide 3

Slide 3 text

© 2017 CloudBees, Inc. All Rights Reserved. 3 #JenkinsWorld Oleg’s “Hall of Shame”(c) • Plugins • Jenkins Core • Remoting • Windows Service Wrapper

Slide 4

Slide 4 text

© 2017 CloudBees, Inc. All Rights Reserved. 4 #JenkinsWorld TODO: Oil Pipelines Image Pipelines?

Slide 5

Slide 5 text

© 2017 CloudBees, Inc. All Rights Reserved. 5 #JenkinsWorld Pipeline. Dev Tools IDE Integration Unit Test Framework Static Analysis Library manager Debug tools Documen- tation Easy script deployment Freestyle => Pipeline Converter Good Not enough Missing Learn more at the conference!

Slide 6

Slide 6 text

© 2017 CloudBees, Inc. All Rights Reserved. 6 #JenkinsWorld So, how to develop Pipelines then?

Slide 7

Slide 7 text

© 2017 CloudBees, Inc. All Rights Reserved. 7 #JenkinsWorld Commit => Test => Commit => Test => Commit => Test => ….?

Slide 8

Slide 8 text

© 2017 CloudBees, Inc. All Rights Reserved. 8 #JenkinsWorld How do I work? Intellij IDEA Filesystem SCM Plugin (with patch) Available via Experimental Update Center • Syntax file • Built-in documentation Jenkins Test Instance Source Code (local .git repos) • Production System Snapshot • Custom Pipeline Library Settings • Repositories for libraries • Jenkinsfile repos

Slide 9

Slide 9 text

© 2017 CloudBees, Inc. All Rights Reserved. 9 #JenkinsWorld https://hub.docker.com/r/onenashev/ demo-jenkins-config-as-code/

Slide 10

Slide 10 text

© 2017 CloudBees, Inc. All Rights Reserved. 10 #JenkinsWorld Useful links • Demo: • https://hub.docker.com/r/onenashev/demo-jenkins-config-as-code/ • Pipeline Shared Libraries • https://jenkins.io/doc/book/pipeline/shared-libraries/ • Pipeline Autocompletion in Intellij IDEA • https://st-g.de/2016/08/jenkins-pipeline-autocompletion-in-intellij • Pipeline Unit • https://github.com/lesfurets/JenkinsPipelineUnit

Slide 11

Slide 11 text

© 2017 CloudBees, Inc. All Rights Reserved. 11 #JenkinsWorld Thank you! Contacts: E-mail: [email protected] GitHub: oleg-nenashev Twitter: @oleg_nenashev