You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Michael 84b0ed6463
Update WINDOWS.md
4 years ago
.github Initial commit 4 years ago
.gitignore Initial commit 4 years ago
03_07.md Update 03_07.md 4 years ago
CONTRIBUTING.md Initial commit 4 years ago
LICENSE Initial commit 4 years ago
MAC_LINUX_DOCKER.md Update MAC_LINUX_DOCKER.md 4 years ago
NOTICE Initial commit 4 years ago
README.md Update README.md 4 years ago
WINDOWS.md Update WINDOWS.md 4 years ago

README.md

Learning Jenkins, 03-07: Boolean Parameters

Create a freestyle job with one build step.

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

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