Reputation: 449
I did read this, yet did not find what I am looking for.
what I want is say a build for project A was triggered by gitlab hook at 1:00 PM, I do NOT want to allow another build for the same project to be triggered earlier than 1:15 PM (15 min interval) or more precisely, earlier than build time plus 15 min, no matter how many push events would be received during that interval and all of them should be triggered follow the same rule, sequentially. If it has been 15 min after last build was/had been triggered/finished and Jenkins receives a new push event, a build will be triggered immediately.
what I DO NOT want is to trigger a build periodically, like every 15 min.
I have tried setup in poll SCM (combined with ignoring hook or not)
H/15 * * * *
yet a build will still be triggered if Jenkins receives a push event within 15 min. There is no 'upstream' project/available, and every build should be triggered by push event or admin manual build
Upvotes: 1
Views: 293