Browse Source

Delete 03_07.md

03_07
Spencer Nicholls 4 years ago
committed by GitHub
parent
commit
c69bf995a4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 40 deletions
  1. +0
    -40
      03_07.md

+ 0
- 40
03_07.md View File

@ -1,40 +0,0 @@
# Learning Jenkins, 03-07: Boolean Parameters
Create a freestyle job with one build step.
Add a boolean parameter called `RUN_TESTS`.
## 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 "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)
## 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 "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)

Loading…
Cancel
Save