Useful freestyle features
| Feature | Use |
|---|---|
| String / Choice parameters | Pass env or version at build time |
| Execute shell / batch | Run scripts |
| Archive artifacts | Keep build outputs |
| Email / Slack notification | Tell the team |
Parameterized example
- Job → This project is parameterized → String
APP_ENV(defaultdev) - Build step:
echo "Deploying to $APP_ENV"Build with Parameters → choose staging → Build.
Post-build actions
Common options: archive artifacts, publish JUnit, send email. Prefer moving complex flows to a Pipeline (Day 3) once you outgrow freestyle.
Freestyle is great for learning. For anything shared with a team, put logic in a Jenkinsfile.