|
|
4 years ago | |
|---|---|---|
| .github | 4 years ago | |
| .gitignore | 4 years ago | |
| 03_07.md | 4 years ago | |
| CONTRIBUTING.md | 4 years ago | |
| LICENSE | 4 years ago | |
| MAC_LINUX_DOCKER.md | 4 years ago | |
| NOTICE | 4 years ago | |
| README.md | 4 years ago | |
| WINDOWS.md | 4 years ago | |
Create a freestyle job with one build step.
Add a boolean parameter called RUN_TESTS.
If you are running Jenkins on a Windows system:
Execute Windows batch command build step@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
If you are running Jenkins on MacOS, Linux, or Docker:
Execute shell build step.#!/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