Uncodemy Logo ← Back to Course
Jenkins · Topic 4 of 15

Creating a Jenkins Job & Git Integration

What is a Job?

A Job in Jenkins is used to perform a set of tasks. Jenkins jobs are of two types:

Basic Steps to Create a Job

  1. Click on "New Item" / Create a job.
  2. Enter the task name.
  3. Choose Freestyle project or Pipeline depending on your requirement.

Connecting a Git Repository

  1. Copy the GitHub repo URL and paste it under Source Code Management → Git.
  2. If Git isn't installed on the server yet, install it on the AWS terminal:
    yum install git -y
  3. For a public repo, no credentials are needed. For a private repo, credentials must be created (covered in the parameters/credentials topic).
  4. To build from a specific branch, mention the branch name under Branches to build. By default Jenkins uses */master.

Running the First Build

Important: If you edit code on GitHub, the change will not reflect on the Linux server until you run the build again — this is a fully manual step unless we set up automatic triggers.

Master Jenkins & DevOps with Uncodemy

Hands-on live training, real projects, and placement support — become job-ready in DevOps.

Enroll in DevOps Training →