Under Discard old builds, we can control how many builds Jenkins keeps:
To view build history directly on the server: cd /var/lib/jenkins → jobs → select job → builds. Logs live inside builds → 1 → log.
| Type | Description |
|---|---|
| String | Any combination of characters & numbers |
| Choice | A pre-defined set of values a user can pick from |
| Credentials | A pre-defined Jenkins credential |
| File | The full path to a file on the file system |
| Multi-line string | Same as String but allows newline characters |
| Password | Similar to Credentials, but passes a plain text value |
| Run | An absolute URL to a single run of another job |
To enable parameters on a job: go to Configure → check "This project is parameterized" and add the required parameter block.
Used for true/false conditions. "Set by Default" checked = true, unchecked = false.
Used when there are multiple options (branches, files, folders, etc.) and only one needs to be picked per build.
Example: Job → Configure → Build Steps → Execute shell → touch $file, then define the choices (e.g. sandy, devops, aws) in the Choice Parameter block. On Build with Parameters, you select one value and it gets used in the shell command.
Used to build a local/computer file. You browse and select a single file at build time and Jenkins uses it in the job.
Used to pass a single-line input value that the build step consumes, e.g. echo "hi my name is $person".
Works exactly like a String parameter, but allows multiple lines of text instead of a single line — useful in pipeline syntax.
Hands-on live training, real projects, and placement support — become job-ready in DevOps.
Enroll in DevOps Training →