Jenkins Hello World Build Job Example |Video upload date:  · Duration: PT7M33S  · Language: EN

Step by step Jenkins Hello World build job tutorial for beginners showing how to create a freestyle job run a build and view console output

Quick overview

Welcome to the tiniest possible CI triumph. This guide walks a Jenkins beginner through creating a freestyle build job that prints Hello World to the console output and runs manually or on a schedule. It is simple enough to be boring and useful enough to justify your existence as a CI human.

What you need first

  • Jenkins installed and running on your host, for example localhost port 8080
  • An account that can create jobs
  • A node or agent that can run shell or Windows batch commands

Create the Hello World build job

  1. Open the Jenkins web UI and click New Item
  2. Give the job a name like Hello World and choose Freestyle project then click OK
  3. Under Build add a build step Execute shell for Linux agents or Windows batch command for Windows agents
  4. Enter the command echo Hello World for Linux or echo Hello World for Windows
  5. Save the job

Run the build and check the logs

Click Build Now to trigger a manual run. Open the build from the build history and select Console Output to see the Hello World line along with the usual build logs. If the agent is happy you will see Hello World followed by normal status messages and a build success message.

Quick console output sample

Building on master in workspace /var/lib/jenkins/workspace/Hello World
[workspace] Running shell script
+ echo Hello World
Hello World
Finished SUCCESS

Optional enhancements that make you look competent

  • Point Source Code Management to a Git repository under the job settings to pull scripts or code
  • Add triggers like Poll SCM or Build periodically to automate runs
  • Convert the job to a Pipeline and store a Jenkinsfile in the repo for version controlled build steps

A minimal declarative Jenkinsfile example

pipeline {
  agent any
  stages {
    stage('Say Hello') {
      steps {
        sh 'echo Hello World'
      }
    }
  }
}

Tips and best practices

  • Prefer a Pipeline over freestyle for reproducibility and reviewability
  • Use declarative syntax for readability and wrap platform commands in sh or bat depending on the agent
  • Store the Jenkinsfile in your repo so build logic moves with code and does not live in an admin UI

If you followed these steps you now have a functioning Jenkins Hello World build job that proves your CI environment is not entirely broken. From here you can add tests linting deployment steps and other horrors that make production safer and developers grateful in small doses.

I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!

This is a dedicated watch page for a single video.