Queue a build if branch is locked

17 views
Skip to first unread message

Katie Outram

unread,
Jun 26, 2015, 3:18:58 PM6/26/15
to jenkins...@googlegroups.com
We have a need to verify whether a given branch is opened or closed before we start a build.    If the branch is closed (aka locked) I don't want the
build to run, but rather put it in a queue until the branch is open.
 
I've been trying to identify any plugins/steps to help us execute this process and have only found the plugins for after the build fails that will start the
build over (the naginator plugin).  
 
Does anyone have suggestions on how to handle this workflow?    
 
We currently use the build flow plugin for our build process, so our solution has to work with this build flow process.
 
Thanks!
 

Baptiste Mathus

unread,
Jul 1, 2015, 11:07:22 AM7/1/15
to jenkins...@googlegroups.com
I guess you forgot to tell us which SCM are using. That concept of a "closed" branch isn't actually a concept you find in the most used SCM like Git or SVN (you can lock with svn, but saying this is "closed" may then be a custom usage on your side).

Cheers

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/25430654-61dc-48e3-b395-705232fcfb89%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !
Reply all
Reply to author
Forward
0 new messages