From the course: Learning Jenkins
String parameters
- [Instructor] Let's configure a job that uses a string parameter. To start, we'll select the option for this project is parameterized. This opens a dialogue where we can enter the details for our string parameter. I'll give it a name and call it version_number. And I can also provide a default value. This is useful for specifying a sensible default for the job, and it can also save you some time typing if you find yourself running the job multiple times. So for the default, for this one, I'll enter 1.0.0. The description gets displayed when the job is run, and this is useful for providing information about the type of information the user should enter. In this case I'll prompt the user to enter a version number. (keyboard types) Now let's use this parameter in a build step. I'm running on a Docker system so I will be using the Execute shell step. If you're on a Window system, you'll be using the Execute Windows…