diff --git a/03_06.md b/03_07.md similarity index 75% rename from 03_06.md rename to 03_07.md index 6fff18d..bf8ca0a 100644 --- a/03_06.md +++ b/03_07.md @@ -1,4 +1,4 @@ -# Learning Jenkins, 03-06: Choice Parameters +# Learning Jenkins, 03-07: Boolean Parameters Create a freestyle job with one build step. # WINDOWS SYSTEMS @@ -7,8 +7,6 @@ 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) @@ -20,7 +18,13 @@ If you are running Jenkins on MacOS, Linux, or Docker: 2. Enter the following for the command: ``` #!/bin/bash -echo "ENVIRONMENT = $ENVIRONMENT" +echo "RUN_TESTS = $RUN_TESTS" +if [ "$RUN_TESTS" = "true" ]; +then + echo "RUNNING TESTS!"; +else + echo "No tests will be run..."; +fi ``` [Follow this link for more details on MacOS, Linux, and Docker](MAC_LINUX_DOCKER.md) diff --git a/MAC_LINUX_DOCKER.md b/MAC_LINUX_DOCKER.md index f0493c7..de533b3 100644 --- a/MAC_LINUX_DOCKER.md +++ b/MAC_LINUX_DOCKER.md @@ -1,4 +1,4 @@ -# Learning Jenkins, 03-06: Choice Parameters +# Learning Jenkins, 03-07: Boolean Parameters Create a freestyle job with one build step. # MacOS, Linux, and Docker diff --git a/WINDOWS.md b/WINDOWS.md index 52a0db1..4f5ec90 100644 --- a/WINDOWS.md +++ b/WINDOWS.md @@ -1,4 +1,4 @@ -# Learning Jenkins, 03-06: Choice Parameters +# Learning Jenkins, 03-07: Boolean Parameters Create a freestyle job with one build step. # WINDOWS SYSTEMS