EasyEnv
Jenkins
Intermediate

Jenkins

Learn Jenkins from freestyle jobs to declarative pipelines, shared libraries, Docker agents, and pipeline-as-code.

11 lessons5.3h hands-on11 languages
Start learning freeJenkins course

11 lessons, in order

  1. 1

    What Is Jenkins

    Open the careers page of almost any bank, telecom, hospital IT department, or game studio that has been running software for more than a decade, and...

    History and Hudson forkWhy Jenkins is still everywhereController and agentsPlugin ecosystemJenkins vs GitLab CI vs GitHub Actions
    20 min
  2. 2

    Your First Freestyle Job

    You have read about what Jenkins is and why it stuck around. None of that matters until you have actually watched Jenkins clone a repository, run a...

    New ItemFreestyle projectSource Code ManagementExecute shell build stepBuild NowConsole output
    25 min
  3. 3

    Your First Declarative Pipeline

    Go back to the freestyle job you built in the last lesson and imagine six months have passed. The shell script grew from three lines to eighty. A...

    Pipeline job typeJenkinsfileAgent anyStages and stepsDeclarative vs scripted
    30 min
  4. 4

    Stages, Steps, and Post Blocks

    Your first pipeline was one sh line, and it worked. A real one is a checkout, a build, a test and a package, and the moment you have four of those in...

    Multiple stagesSh and echoArchiveArtifactsJunit stepPost alwaysPost success and failure
    30 min
  5. 5

    Artifacts and Test Results

    The build went red at 2am and somebody has to work out why. They open the job, and the only thing on the page is a link to a console log: eleven...

    ArchiveArtifactsJunit stepPublishHTMLTest trend graphFingerprinting
    25 min
  6. 6

    Environment and Credentials

    Your pipeline needs to push an image to a registry, and the registry wants a password. The quickest thing that works is to paste it into the...

    Environment blockCredentials() helperJenkins credentials storeUsername with passwordSecret textSSH key+1
    30 min
  7. 7

    Parallel and Matrix Builds

    Five stages, three minutes each, and the pipeline takes fifteen minutes. That number is not just annoying, it changes behaviour: people stop waiting...

    Parallel inside a stageFan-out fan-inMatrix blockAxes and axisExcludes
    30 min
  8. 8

    Agents and Docker

    The build passed on Tuesday and failed on Wednesday, with no change to the code. It turns out Tuesday's build landed on the agent where somebody had...

    Agent any vs agent noneAgent labelsAgent dockerAgent kubernetesPer-stage agents
    30 min
  9. 9

    Triggers and Schedules

    A pipeline that only runs when somebody clicks Build Now is not continuous integration, it is a button. The value of CI comes from the builds nobody...

    Triggers blockCron syntax with HPollSCMMultibranch PipelineGitHub and GitLab webhooks
    25 min
  10. 10

    Shared Libraries

    Open three Jenkinsfiles in your organisation and you will find the same fifteen lines of Groovy in all of them. The Slack notifier. The "build and...

    Vars folderSrc folder@Library annotationCustom stepsGlobal utilities
    30 min
  11. 11

    Capstone: Pipeline as Code for a Node.js App

    Time to wire everything together. You are going to write one Jenkinsfile that does the full job for a small Node.js project: checkout, install, lint...

    Full JenkinsfileCheckoutParallel lint and testDocker build and pushCredentialsJunit results+1
    45 min
Jenkins Course: Hands-on, in 11 Languages | Engineering Courses