0

Is it possible with Jenkins to run a command on a specific server at a specific time? For example:

on jenkins@apache-server01i at 10:00   ./stress-ng --cpu 8 --cpu-load 100 --timeout 10m
on jenkins@tomcat-server01i at 11:30    systemctl stop tomcat
on jenkins@tomcat-server01i at 11:35    systemctl start tomcat
on jenkins@mysql-server01i  at 13:00    systemctl restart mysqld

is there a plugin for this Job?

Ian W
  • 3,636
  • 2
  • 17
  • 32

1 Answers1

0

Not really the way Jenkins is intended to be used; better to use cron directly.

Otherwise, set up job with a cron trigger triggers { cron('0 30 * * *') } with an agent labelled to match: agent { node { label 'labelName' } }

You could run one job start at 10, with sleep stages.

Ian W
  • 3,636
  • 2
  • 17
  • 32