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.
 

737 B

Learning Jenkins, 02-07: Run and Monitor Jobs

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
for /L %%i in (1,1,30) do (
  @echo %%i
  @ping localhost -n 2 >NUL
)
exit /b 1

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
for i in {1..30}; do
  echo $i;
  sleep 1;
done

Follow this link for more details on MacOS, Linux, and Docker