| @ -1,28 +0,0 @@ | |||||
| # Learning Jenkins, 03-06: Choice Parameters | |||||
| Create a freestyle job with one build step. | |||||
| Add a choice parameter with three or more choices. | |||||
| ## WINDOWS SYSTEMS | |||||
| If you are running Jenkins on a Windows system: | |||||
| 1. Select the `Execute Windows batch command` build step | |||||
| 2. Enter the following for the command: | |||||
| ``` | |||||
| @echo off | |||||
| @echo ENVIRONMENT = %ENVIRONMENT% | |||||
| ``` | |||||
| [Follow this link for more details on Windows](WINDOWS.md) | |||||
| ## MacOS, Linux, and Docker | |||||
| If you are running Jenkins on MacOS, Linux, or Docker: | |||||
| 1. Select the `Execute shell` build step. | |||||
| 2. Enter the following for the command: | |||||
| ``` | |||||
| #!/bin/bash | |||||
| echo "ENVIRONMENT = $ENVIRONMENT" | |||||
| ``` | |||||
| [Follow this link for more details on MacOS, Linux, and Docker](MAC_LINUX_DOCKER.md) | |||||