New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger build only on specific branches #355

Closed
Andrew8xx8 opened this Issue Jun 17, 2014 · 16 comments

Comments

Projects
None yet
@Andrew8xx8

Andrew8xx8 commented Jun 17, 2014

We like your service; it is easy-to-use one.

We would like to have the opportunity to build only specific branches, for instance, master or staging.

I have looked into the code but have not found such opportunity, I could find only #291, in which there is the possibility to define the brunch only for plugin.

Do you consider making this functionality more common?

Maybe we can help you to realize this feature.

@bradrydzewski

This comment has been minimized.

Member

bradrydzewski commented Jun 18, 2014

Makes sense. We can add a section to the yaml like this:

branches:
  exclude:
    - exp

or

branches:
  include:
    - master

I would definitely like help with this, however, we need to wait until the 0.3 branch is published otherwise it may be a wasted effort. I'll comment back on this issue when we are ready for such a change to be implemented.

@ralfschimmel

This comment has been minimized.

ralfschimmel commented Jun 19, 2014

This would be very nice 🎯

@paislee

This comment has been minimized.

paislee commented Jul 15, 2014

Upvote. This feature would allow drone to play well with a git-flow development style.

@igoraj

This comment has been minimized.

igoraj commented Jul 15, 2014

👍

@timelf123

This comment has been minimized.

timelf123 commented Jul 17, 2014

Great idea!

@bradrydzewski

This comment has been minimized.

Member

bradrydzewski commented Jul 18, 2014

I recently added this feature to my 0.3 branch, which should be merged back into mainline in a couple weeks. You can see the commit here: bradrydzewski@1491ba2

@igoraj

This comment has been minimized.

igoraj commented Jul 18, 2014

@bradrydzewski what is ETA for 0.3 release?

@mostafazh

This comment has been minimized.

mostafazh commented Aug 2, 2014

@bradrydzewski I'm really interested in drone but the 0.2 binaries are outdated and the building is too complex/not clear for me.

So, do you've any ETA for 0.3 release? Thanks a lot 😄 👍

@bradrydzewski

This comment has been minimized.

Member

bradrydzewski commented Aug 2, 2014

0.3 still has a ways to go unfortunately. You can see it here:
https://github.com/drone/drone/tree/exp

It is still lacking some important features, namely

  • notifications
  • github status api updates
  • gitlab integration
  • smtp settings screen
  • github / bitbucket / gitlab settings screen

That being said, it is functional. I've been using for the past month or so. The build process is also simplified. make deps && make && make run

@bradrydzewski bradrydzewski added this to the v0.3 milestone Aug 2, 2014

@floatdrop

This comment has been minimized.

Contributor

floatdrop commented Aug 2, 2014

@bradrydzewski sweet. I will setup it internally tomorrow! Will be glad to face some dragons! Many thanks!

@mephux

This comment has been minimized.

mephux commented Dec 19, 2014

so was this added? if so whats the syntax?

@bradrydzewski

This comment has been minimized.

Member

bradrydzewski commented Dec 19, 2014

@mephux yes, you can limit to a subset of branches with the following yaml entry:

branches:
  - master
  - dev
@mephux

This comment has been minimized.

mephux commented Dec 20, 2014

@bradrydzewski thank you - just to clarify.. is this a top level thing or is this nested under git: or something else.

@fommil

This comment has been minimized.

fommil commented Apr 24, 2016

does this take glob patterns?

I'm finding that it is not possible to restrict to master and pull/* on github repositories, so there is no way to ignore work-in-progress branches.

@dbendy

This comment has been minimized.

dbendy commented Mar 20, 2017

@fommil: have you found an answer to your question? I am searching for the same thing.

@donny-dont

This comment has been minimized.

Contributor

donny-dont commented Mar 20, 2017

@dbendy we have multiple support channels referenced in the README and this issue is almost a year old.

The documentation for this is at http://readme.drone.io/usage/skipping-builds/. If something is missing then feel free to bring it up on gitter.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment