Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥

Jenkins World 2017. Developing Pipeline Librari...

Jenkins World 2017. Developing Pipeline Libraries Locally

Demo: https://github.com/oleg-nenashev/demo-jenkins-config-as-code

If you have ever tried developing Pipeline Libraries, you may have noticed how long it takes to deploy a new version to server to discover just another syntax error. I will show how to edit and test Pipeline libraries locally before committing to the repository (with Configuration-as-Code and Docker).

Oleg Nenashev

August 30, 2017
Tweet

More Decks by Oleg Nenashev

Other Decks in Programming

Transcript

  1. © 2017 CloudBees, Inc. All Rights Reserved. 2 #JenkinsWorld About

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

    “Hall of Shame”(c) • Plugins • Jenkins Core • Remoting • Windows Service Wrapper
  3. © 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!
  4. © 2017 CloudBees, Inc. All Rights Reserved. 7 #JenkinsWorld Commit

    => Test => Commit => Test => Commit => Test => ….?
  5. © 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
  6. © 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
  7. © 2017 CloudBees, Inc. All Rights Reserved. 11 #JenkinsWorld Thank

    you! Contacts: E-mail: [email protected] GitHub: oleg-nenashev Twitter: @oleg_nenashev