Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Jenkins Basics

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →

Jenkins Basics

Avatar for Kanstantsin Shautsou

Kanstantsin Shautsou

September 24, 2016

Other Decks in Programming

Transcript

  1. Installation • Manual `java -jar jenkins.war` [link] • Windows specific

    installer • `docker run jenkins` • Linux distros • rpm • deb
  2. Items • Job/Project • freestyle (core) • maven (maven-project- plugin)

    • matrix (matrix-plugin) • multibranch * • pipeline (pipeline-plugin) • pipeline-multibranch (pipeline-multibranch-plugin) • … but why? • View • delivery-pipeline • dashboard • monitoring • … • Folder
  3. Freestyle Project Lifecycle • Project Property • SCM (single) •

    Triggers • Build Wrappers (“Build Environment”) • Builders • Publishers • Recorder • Notifier
  4. Scheduling Lifecycle • Run/Build (difference?) • Enter Queue • Queue

    Decision • wait • provision • merge • Exit Queue • Execute
  5. Plugins • Extension Points (automation framework) • Jobs • Views

    • Triggers • Listeners • Queue • Action (special) • ….
  6. Jenkins lifecycle • Start servlet • Load plugins • Initialize

    plugins • Post initialization – init.groovy.d hook. Puppet, chef using for configuration. • User opens browser • In-memory load – Items – Usually all latest builds
  7. Debug • Logging • Script console • “Magic” system properties

    [link] • `java -Xdebug` & IDE & breakpoints
  8. Security • Authentication: ldap, AD, etc • Authorization: Role Strategy,

    matrix, project- based, etc • Credentials (plugin) – store all credentials in it. No text field input forms!
  9. Master - Slave • Communications • SSH (master connects to

    slave). Require auth in slave. • JNLP (slave connects to master). Require reachable master.