Table of contents
What are the different types of jobs in Jenkins? Which one to pick for your needs? This confuses a lot of techies who are new to this awesome builder. Lol! let's understand it with a simple real-life example of making a sandwich.
Freestyle Job:
- Building a sandwich with a freestyle job is like making it step by step.
- You start with the bread, then add the cheese, and finally, the ham.
- Each ingredient is a separate step; you arrange them one after the other until you have a complete sandwich.
- Freestyle jobs in Jenkins work similarly
- you set up your build process step by step, like building a sandwich ingredient by ingredient.
Pipeline Job:
- Making a sandwich with a pipeline job is like having an assembly line.
- Instead of building the sandwich ingredient by ingredient, you put all the ingredients on a conveyor belt.
- The conveyor belt moves the bread, cheese, and ham through different stations, and at the end, you have a fully assembled sandwich.
- Similarly, a pipeline job in Jenkins allows you to define your entire build process in one script.
- Jenkins follows the script like an assembly line, executing each step to build and deploy your project.
Multi-Configuration Project:
- Imagine making sandwiches for various preferences. - In a freestyle project, you'd create separate ones for each sandwich type. In a multi-configuration project, you have a single adaptable project.
- You set up parameters like "sandwich-type" and "bread type," and the project adapts to make the specific sandwich based on these configurations.
Hope this article might be helpful for folks who have just started learning to make sandwiches. Oops, I meant Jenkins. Drop a like and leave a comment down below for more such yummy tech articles. Btw happy new year