用H/1 * * * *每分钟运行一个Jenkins的工作。

时间:2023-01-31 01:08:44

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

我怎么能每一分钟就在詹金斯身上找到一份工作呢?我错过什么吗?

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

PS:我尽量不使用:*/1 * * * *。

用H/1 * * * *每分钟运行一个Jenkins的工作。用H/1 * * * *每分钟运行一个Jenkins的工作。

3 个解决方案

#1


39  

Try * * * * * to run every minute.

试着每分钟都跑一次。

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

不幸的是,由于打开缺陷,H/1 * * * *不能工作。

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

缺陷:https://issues.jenkins - ci.org/browse/jenkins - 22129

#2


8  

Your intuition is right, H/1 is supposed to behave like "run every minute".

你的直觉是对的,H/1应该像“每分钟跑一次”。

However, there is a well-known bug in Jenkins. See JENKINS-22129.

然而,在Jenkins中有一个众所周知的错误。看见詹金斯- 22129。

Currently, H/1 behaves like "run every hour".

目前,H/1的行为类似于“每小时运行一次”。

#3


0  

First thing - I believe we should not let any job run for every minute using * * * * *. Anyways !! It would be better that Jenkins would report an error on using "H/1 * * * *` so developers won't get confused on it's usage and waste a hell lot of time - I spent 1+ hours to figure it out.

第一件事——我相信我们不应该让任何一分钟的工作都用* * * * *。不管怎样! !更妙的是,Jenkins会在使用“H/1 * * * * *”时报告一个错误,这样开发人员就不会对它的使用感到困惑,并且浪费了大量的时间——我花了1+小时来计算它。

#1


39  

Try * * * * * to run every minute.

试着每分钟都跑一次。

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

不幸的是,由于打开缺陷,H/1 * * * *不能工作。

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

缺陷:https://issues.jenkins - ci.org/browse/jenkins - 22129

#2


8  

Your intuition is right, H/1 is supposed to behave like "run every minute".

你的直觉是对的,H/1应该像“每分钟跑一次”。

However, there is a well-known bug in Jenkins. See JENKINS-22129.

然而,在Jenkins中有一个众所周知的错误。看见詹金斯- 22129。

Currently, H/1 behaves like "run every hour".

目前,H/1的行为类似于“每小时运行一次”。

#3


0  

First thing - I believe we should not let any job run for every minute using * * * * *. Anyways !! It would be better that Jenkins would report an error on using "H/1 * * * *` so developers won't get confused on it's usage and waste a hell lot of time - I spent 1+ hours to figure it out.

第一件事——我相信我们不应该让任何一分钟的工作都用* * * * *。不管怎样! !更妙的是,Jenkins会在使用“H/1 * * * * *”时报告一个错误,这样开发人员就不会对它的使用感到困惑,并且浪费了大量的时间——我花了1+小时来计算它。