A beginner-friendly comparison of Jenkins Freestyle jobs and Declarative Pipelines on AWS EC2, with examples and a clear recommendation."
tags: aws, jenkins, devops, cicd
When I started learning Jenkins on AWS, the first question I hit was: "Should I create a Freestyle job or a Pipeline?" Both can build and deploy your code, but they work very differently. In this article I explain both in simple terms, compare them, and help you decide which one to use on your EC2-hosted Jenkins server.
What is a Freestyle Job?
A Freestyle job is the classic, beginner-friendly way to create a build in Jenkins. You configure everything through the web UI by clicking and filling in forms:
Choose a source code repository (GitHub)
Add a build trigger (manual, webhook, or poll SCM)
Add build steps (for example, "Execute shell")
Add post-build actions (for example, notifications)
Example: Docker build in a Freestyle job (Execute shell step)
docker build -t myuser/cloudcart:latest .β¦