Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run a Jenkins job every one minute using H/1 * * * *

How can I run a job created in Jenkins every one minute ? Am I missing anything?

PS: I'm trying not to use: */1 * * * *

enter image description hereenter image description here

like image 777
AKS Avatar asked Apr 30 '15 18:04

AKS


People also ask

How do I schedule a Jenkins job to run every minute?

In the above example, we have used the cron expression “*/1 * * * *” which means to run the Jenkins job every minute.

How will schedule the job to be executed every 1 hour in Jenkins?

The steps for schedule jobs in Jenkins:click on "Configure" of the job requirement. scroll down to "Build Triggers" - subtitle. Click on the checkBox of Build periodically. Add time schedule in the Schedule field, for example: @midnight.

How do I run a Jenkins job repeatedly?

The easiest way to do this is to add a post build step that builds the same project. Set "Post-build Actions" - "Build other projects" - "Projects to build" to the name of your project and it will loop forever.

How do you make a Jenkins job periodically?

Under Build Triggers - Build periodically - Schedule you can create a schedule (or multiple schedules) for Jenkins to build periodically or on a specific date/time. It might be tests that should be run periodically (every morning for example) or a DB clean up Jenkins job or any other Jenkins job.


1 Answers

Try * * * * * to run every minute.

Unfortunately H/1 * * * * does not work due to open defect.

Defect: https://issues.jenkins-ci.org/browse/JENKINS-22129

like image 118
vins Avatar answered Sep 21 '22 13:09

vins