how do I configure Scan Multibranch Pipeline Triggers for a specific time every day?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how do I configure Scan Multibranch Pipeline Triggers for a specific time every day?

red 888

In the UI the only options I have is interval: 

zzzz.png

But I want all my scans to happen at midnight (they will get queued up and thats fine) not have them happen during the day spread out

How do I have scans happen at the same time every night for my jobs?

Trying to do this with job dsl this is isnt causing it to scan at night. I dont understand the relationship between spec and interval:

it / 'triggers' << 'com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger'{ spec '0 0 * * *' // not working interval "60000" }

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1a91b97d-cf6f-4d87-b37e-49ec06eaba87n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: how do I configure Scan Multibranch Pipeline Triggers for a specific time every day?

John Patrick
Uncheck "Periodically if not otherwise run" as that won't do what you are wanting to do. Look at the other options or sections.

Periodic selecting 1 day, will execute the job daily but you won't have control over when in the day it will run, also if something else triggers the job then it won't run as it says "if not otherwise run". A hack would be to select 1 day, then at midnight manually trigger the job, then it should execute about midnight going forward if no other builds are triggered.

What you are describing is the cron option, which in the UI is shown as "Build periodically" and I entered "H 0 * * *" will trigger the job between midnight and 1am. 

Without seeing more of your configuration, or instructions on how you created your job, then I can't help you more.

John


On Fri, 18 Sep 2020 at 09:58, [hidden email] <[hidden email]> wrote:

In the UI the only options I have is interval: 

zzzz.png

But I want all my scans to happen at midnight (they will get queued up and thats fine) not have them happen during the day spread out

How do I have scans happen at the same time every night for my jobs?

Trying to do this with job dsl this is isnt causing it to scan at night. I dont understand the relationship between spec and interval:

it / 'triggers' << 'com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger'{ spec '0 0 * * *' // not working interval "60000" }

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1a91b97d-cf6f-4d87-b37e-49ec06eaba87n%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAH9u10%3DSgkenXOC4qJkLxyTQPQyudO6UcyhkTdsgtH%3DnZEqK_g%40mail.gmail.com.

Screenshot 2020-09-19 at 11.28.46.png (97K) Download Attachment