Not sure that running a job 4 times per minute is stupid without more information; one use case would be polling an unusual USB input device, like a thermometer or a strain gauge or other scientific/engineering instrument. I would agree that Jenkins is probably the wrong thing to do this on. Sure, you could write a plugin, but you can write a plugin for anything. With enough ingenuity for writing plugins, I’m sure you could turn Jenkins into a perfectly horrible fly-by-wire system. If somebody does this, please let me know which planes it’s installed on, so I can avoid them in my travel plans. ;*)
If you want to run a job at sub-minute intervals, neither Jenkins nor Cron are your friend. You want to write another program or script something that will loop through launching your app and waiting the appropriate time. Some interesting questions: 1: Do you want each job to launch 15 seconds after the previous one launched, or after the previous one finished? 2: If a job somehow runs longer than 15 seconds, do you want to kill it, launch a second job so that you have two running, or stop running jobs until the one that you have is finished? If you want to use Jenkins to track each run of the job (so that you can see the output), see https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+external+jobs. Basically, your job can run on its own and report into Jenkins without Jenkins being responsible for running it. That being said, if you’re either running a job via Jenkins every 15 seconds or just using Jenkins to monitor it, you will need a lot of memory for your Jenkins JVM and will probably want to use the ‘discard old builds’ checkbox. Jenkins loads the metadata for each job it “remembers” (not artifacts, not logs, but the other information like run times and success/failure) into memory. --Rob From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Stephen Connolly Sent: Wednesday, July 02, 2014 5:25 AM To: jenkinsci-users@googlegroups.com Subject: Re: Want to build Jenkins job every after 15 seconds I agree that it does sound like somebody trying to solve the wrong problem... we'll see which road he takes... does he push back on the "requirement" and find a better solution that does not involve running a job every 15 seconds... or does he get his feet wet and write a custom plugin (and a month or two down the road end up pushing back on the "requirement" because building jobs 4 times per minute is stupid) On 2 July 2014 10:18, Daniel Beck <m...@beckweb.net<mailto:m...@beckweb.net>> wrote: You can't. Are you sure you're using the right tool for the job? https://en.wiktionary.org/wiki/if_all_you_have_is_a_hammer,_everything_looks_like_a_nail On 02.07.2014, at 10:42, Swapnil Pawar <vedant.swap...@gmail.com<mailto:vedant.swap...@gmail.com>> wrote: > Can you please tell me How I can schedule Jenkins Job which will execute > every after 15 seconds. -- 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-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users%2bunsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/d/optout. -- 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-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/d/optout. Click here<https://www.mailcontrol.com/sr/yQEyRgQwxx3GX2PQPOmvUjg7ce8j6mWJ5SvdGSeNj+VfuMpPjCJCguP96SS7TAvzoyxjTtESlxjBcfXS4znW5Q==> to report this email as spam. ________________________________ This e-mail and the information, including any attachments it contains, are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message. Thank you. Please consider the environment before printing this email. -- 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-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.