Skip to main content

Command Palette

Search for a command to run...

Understanding Jenkins Jobs: Explained with Sandwich Making ๐Ÿฅช

Published
โ€ข2 min read
Understanding Jenkins Jobs: Explained with Sandwich Making ๐Ÿฅช
P

๐Ÿ‘‹ Hello, I'm Prakhar Parashari !

๐Ÿš€ Software Developer | Tech Enthusiast | Blogger

๐ŸŒ Exploring the fascinating world of code and technology, one blog post at a time. Join me on my journey as I share insights, tips, and tutorials on all things software development, web development, and beyond.

๐Ÿ” Let's connect, learn, and grow together in this ever-evolving tech landscape. Feel free to reach out, ask questions, or share your own tech experiences. I'm here to inspire and be inspired by the incredible Hashnode community!

๐Ÿ“ Check out my latest blog posts below โฌ‡๏ธ and follow me to stay updated. Thanks for being a part of this exciting adventure! ๐Ÿš€

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