Introduction
Jenkins jobs need configuration files to tell them what to do. These files have sections that organize settings like source code location, build steps, and notifications. This helps Jenkins run tasks automatically and correctly.
When you want Jenkins to pull code from a Git repository before building.
When you need to run a script or command as part of your build process.
When you want Jenkins to send an email after a build finishes.
When you want to set environment variables for your build steps.
When you want to schedule your job to run at specific times automatically.