Use the console to create a freestyle job with one build step.
If you are running Jenkins on a Windows system:
Execute Windows batch command build step@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
If you are running Jenkins on MacOS, Linux, or Docker:
Execute shell build step.#!/bin/bash
for i in {1..30}; do
echo $i;
sleep 1;
done
Follow this link for more details on MacOS, Linux, and Docker