From 238d0209f0468d94821d5699fc4f7b6e844ed4cb Mon Sep 17 00:00:00 2001 From: Michael Jenkins Date: Fri, 1 Oct 2021 15:41:37 -0700 Subject: [PATCH] Add files for 03_07 --- 03_06.md => 03_07.md | 12 ++++++++---- MAC_LINUX_DOCKER.md | 2 +- WINDOWS.md | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) rename 03_06.md => 03_07.md (75%) 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