SCM initiated builds with scripted/imperative pipeline

12 views
Skip to first unread message

Gardell, Steven

unread,
Mar 2, 2017, 10:07:50 AM3/2/17
to jenkins...@googlegroups.com

I am trying to get parallel builds to run as described in several different places including:

 

https://www.cloudbees.com/blog/parallelism-and-distributed-builds-jenkins

https://jenkins.io/blog/2016/10/16/stage-lock-milestone/

 

What I find is that this mechanism (basically “lock(…) { milestone() { do-build }}”) works at the scripting level when I invoke the build manually but not for SCM (in my case Perforce) initiated builds. This is true with both ‘SCM polling’ and ‘Perforce triggered’ builds. It seems that this SCM initiation simply doesn’t run if the job is currently running. This same build is being triggered by SCM polling when it is not currently running, so I am by that minor challenge.


Any suggestions?

Reply all
Reply to author
Forward
0 new messages