Want to schedule a Jenkins job which will run after every 5 seconds

1,336 views
Skip to first unread message

amol likhite

unread,
May 7, 2014, 10:48:19 AM5/7/14
to jenkins...@googlegroups.com
Hi,

Want to schedule a Jenkins job which will run after every 5 seconds.

Thanks in advance.

Regards,
Amol Likhite

Daniel Beck

unread,
May 7, 2014, 11:03:17 AM5/7/14
to jenkins...@googlegroups.com
This isn't straightforward in Jenkins.

Are you sure you're not using it as a golden hammer?
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Scott Evans

unread,
May 7, 2014, 11:06:17 AM5/7/14
to jenkins...@googlegroups.com
Amol,

This seems rather unusual to need to have a job run every 5 seconds.  If you could let us know what you're trying to accomplish, there is most likely another way that's better than a continuously running job.

Scott

Mark Waite

unread,
May 7, 2014, 11:54:40 AM5/7/14
to jenkins...@googlegroups.com

Couldn't the job be defined to do its planned steps then add a concluding step which launches the job again.  Make the job delay be 5 seconds, and let the job delay time handle the 5 seconds between jobs.

Mark Waite

amol likhite

unread,
May 7, 2014, 11:50:29 PM5/7/14
to jenkins...@googlegroups.com
Hi,

Thanks for the quick reply.

I am currently executing the Jmeter scripts through Jenkins and showing the generated data on the web site for continuous monitoring.
As per requirement some of the scripts need to be execute after every 5 seconds and some of them after every 5 minutes.

I have created 2 jobs under Jenkins one will start after every 5 minutes and other will start after 2 minutes as currently I don't have solution to run every after 5 seconds.

Thanks in advance.

Regards,
Amol Likhite

amol likhite

unread,
May 7, 2014, 11:51:20 PM5/7/14
to jenkins...@googlegroups.com

amol likhite

unread,
May 7, 2014, 11:51:45 PM5/7/14
to jenkins...@googlegroups.com
Hi Mark,

Thanks for the quick reply.

I am currently executing the Jmeter scripts through Jenkins and showing the generated data on the web site for continuous monitoring.
As per requirement some of the scripts need to be execute after every 5 seconds and some of them after every 5 minutes.

I have created 2 jobs under Jenkins one will start after every 5 minutes and other will start after 2 minutes as currently I don't have solution to run every after 5 seconds.

Thanks in advance.

Regards,
Amol Likhite

On Wednesday, May 7, 2014 9:24:40 PM UTC+5:30, Mark Waite wrote:

Maciej Jaros

unread,
May 8, 2014, 6:46:00 AM5/8/14
to jenkins...@googlegroups.com
amol likhite (2014-05-08 05:51):
Hi Mark,

Thanks for the quick reply.

I am currently executing the Jmeter scripts through Jenkins and showing the generated data on the web site for continuous monitoring.
As per requirement some of the scripts need to be execute after every 5 seconds and some of them after every 5 minutes.

I have created 2 jobs under Jenkins one will start after every 5 minutes and other will start after 2 minutes as currently I don't have solution to run every after 5 seconds.



MOL sp. z o.o. Maciej Jaros
e-mail: mac...@mol.com.pl
WWW: www.mol.pl

tel: 58 669 80 90
fax: 58 669 80 91
 
 

amol likhite

unread,
May 8, 2014, 6:50:45 AM5/8/14
to jenkins...@googlegroups.com
Thanks for the reply...

Thank you so much


--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/ll8lki3jT_w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards,
Amol Likhite
Reply all
Reply to author
Forward
0 new messages