Hi,

I have looked at it but it seems only possible if I change our Jenkinsfile 
within each project stored in svn within the branches of it. And I can’t see 
where to put the cron entry in the multi branch pipeline. I have only the 
following options (… 12 hours, 1 day, 2 days, etc… ) in “Periodically if not 
otherwise run” in the triggers section.

That means I can’t control the time it will be executed.

Alternative:
I can execute a scheduled curl program which triggers the “trunk” successfully, 
but the “branches/2019/trunk” gives a http 404 error.

Kind regards,

Roel de Wildt
Software Engineer

Van: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] 
Namens Gianluca
Verzonden: woensdag 1 april 2020 09:17
Aan: Jenkins Users <jenkinsci-users@googlegroups.com>
Onderwerp: Re: Command line acccess to build actions in muti branch pipeline

Hi,
we have a similar issue and we use a combination of trigger cron command with 
"H" (if instead of * into cron syntax, you put "H" then Jenkins treats it 
special)
>From documentation https://jenkins.io/doc/book/pipeline/syntax/
"The H symbol can be thought of as a random value over a range, but it actually 
is a hash of the job name, not a random function, so that the value remains 
stable for any given project."

But also that's is not sufficient in cases the pipeline takes more than an hour 
(as in our case), hence we add on top of this the usage of LockableResources 
and we created a resource that we lock in the stages of the pipeline we know we 
can't run at the same time because of constraints.

https://jenkins.io/doc/pipeline/steps/lockable-resources/

So, a combination of both ... does the tricks for us and I think it should work 
as well for you too.

Cheers,
Gianluca


On Wednesday, 1 April 2020 08:08:41 UTC+1, BCT Roel de Wildt wrote:
Hello,

In previous versions of Jenkins LTS there was a jenkins-cli.jar which I used to 
trigger a build job. Now with the latest (2.222.1) I can’t find how to do the 
build jobs on a scheduled base. Where one is shedules at 19:00, the other on 
20:30, etc… They can’t run at same time due resources limits. What is the best 
option to execute a single build job in a multi branch pipeline?

Kind regards,

Roel de Wildt
Software Engineer

--
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>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c96a2c92-9eb4-4e3e-9323-63c829418bc3%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/c96a2c92-9eb4-4e3e-9323-63c829418bc3%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/199E247AC0B52945AC9C5CA0041D807F3952471A%40EXCH001.bct.local.

Reply via email to