On the job configuration page, there is a section called “Build Triggers”. Select “Build periodically” and enter your schedule. There is help text available.
--
--
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.
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
Click here to report this email as spam.
1: Do you want each job to launch 15 seconds after the previous one launched, or after the previous one finished? - yes..have to laucnh the after previous one finished
Right, so you have a good reason to launch every 15 seconds from Jenkins. Presumably, you want to use the Performance Plugin, and want it to run every 15 seconds.
So build your Jmeter job, adding a “Trigger builds remotely (e.g., from scripts)” trigger. That will give you a URL to use to call it.
Install a command-line HTTP client, such as curl or wget, where one of your build nodes can reach it.
Make a second job that runs on said build node(s), launches every minute, and use a shell or windows batch step.
Write a shell script or batch file that:
1: Hits the JMeter job URL via the HTTP client you installed.
2: Sleeps for 15 seconds.
3: hits the JMeter job
4: sleeps
5: hits the JMeter job
6: sleeps
7: hits the JMeter job
This way, even if the job dies somewhere along the way, Jenkins will bring it back. If you truly want to shut it down, disable this job to keep it from running.
--Rob
From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com]
On Behalf Of Swapnil Pawar
Sent: Wednesday, July 02, 2014 8:23 AM
To: jenkins...@googlegroups.com
Subject: Re: Want to build Jenkins job every after 15 seconds
Hi Rob,
--
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.
Click here to report this email as spam.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a718e820-62a4-49b8-b3d0-6ec6bb84f027%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.