DevOps Peach

DevOps & CI/CD · Module 03

Jenkins Pipeline

Run Jenkins, manage credentials safely, write Declarative Jenkinsfiles from basic to advanced (when, post, parallel, matrix), extend with plugins and spread builds across agents.

Practice interactively →

What you will learn

Lessons

  1. Jenkins and CI/CD

    Jenkins is an open-source automation server that orchestrates build, test and deploy; every commit goes through an automated pipeline instead of late, manual integration.

  2. Jenkins Credentials

    Store secrets in the credentials store under an ID, use them through credentials() or withCredentials so Jenkins masks them in logs; never hard-code them or interpolate them with Groovy.

  3. Declarative Jenkinsfile Basics

    A Jenkinsfile is pipeline as code stored in the repo; Declarative syntax is pipeline → agent → stages → stage → steps, plus environment and parameters.

  4. Advanced Pipeline Syntax

    Per-stage and Docker agents, options timeout, triggers, when, parallel, matrix, input, script blocks and post with always, success, failure, unstable, fixed, regression and cleanup conditions.

  5. Plugins and the Controller–Agent Architecture

    Plugins extend Jenkins (Git, Pipeline, SonarQube, Email Extension…); the controller schedules and hands builds to agents by label, and agents run them on executors.