diff --git a/03_07.md b/03_07.md index bf8ca0a..ddcff36 100644 --- a/03_07.md +++ b/03_07.md @@ -7,6 +7,13 @@ 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 "RUN_TESTS = %RUN_TESTS%" +if "%RUN_TESTS%"=="true" ( + echo "RUNNING TESTS!" +) else ( + echo "No tests will be run" +) ``` [Follow this link for more details on Windows](WINDOWS.md) diff --git a/WINDOWS.md b/WINDOWS.md index 4f5ec90..462882a 100644 --- a/WINDOWS.md +++ b/WINDOWS.md @@ -7,8 +7,13 @@ 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% +@echo OFF +echo "RUN_TESTS = %RUN_TESTS%" +IF "%RUN_TESTS%"=="true" ( + ECHO "RUNNING TESTS!" +) ELSE ( + ECHO "No tests will be run" +) ``` # Troubleshooting Errors