Hi Robert,

take a look at PeriodicWork

http://javadoc.jenkins-ci.org/hudson/model/PeriodicWork.html

Regards,

/James

On Tuesday, 4 November 2014 15:52:14 UTC, Robert Langenfeld wrote:
>
> I'm looking for a way to have Jenkins automatically call a method every 
> hour or so and have it be executed. I rather not create a new framework to 
> do this as it can become CPU intensive. Instead I'd rather have Jenkins 
> make the calls. Below is an example of what I'm talking about.
>
>
> public class MyClass extends JenkinsClass{
>
> @Override
>
> public void methodThatJenkinsCallsPeriodically(){
>
> myMethod()
>
>  }
>
>  
>
> public void myMethod(){
>
> //TODO Implementation
>
> } 
>
> }
>
>
> I'm assuming this class will have to get added to some kind of list of 
> triggers or something that jenkins will fire off periodically. So does 
> anyone have any good examples of this?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to