Alternative options to skip a build

gep13's Avatar

gep13

06 Sep, 2014 12:41 PM

Hello,

Are there any other options to skip a build, other than this:

http://www.appveyor.com/docs/how-to/skip-build

The reason that I ask is I have started to use Prose.io to create blog posts for a newly deployed Octopress site, which is built using AppVeyor. While creating the blog post, I have the option of adding images, which Prose.io commits into my repository. This happens in the background while writing the blog post, and as a result, AppVeyor kicks off a build, which really isn't needed. I can't see an option to alter the commit message in Prose.io, but I have asked the question:

https://github.com/prose/prose/issues/761

I was just wondering if there are any other options from the AppVeyor side of things, i.e. is it possible to specify a regex for analysing commit messages to see if a build is required?

Thanks

Gary

  1. Support Staff 1 Posted by Feodor Fitsner on 08 Sep, 2014 06:27 PM

    Feodor Fitsner's Avatar

    Hi Gary,

    Could you give me an example of such commit message and the filter you would setup?

  2. Support Staff 2 Posted by Feodor Fitsner on 08 Sep, 2014 06:29 PM

    Feodor Fitsner's Avatar

    oh, and feel free to add my GitHub username @FeodorFitsner to any discussion you need my attention to :)

  3. 3 Posted by gep13 on 08 Sep, 2014 08:22 PM

    gep13's Avatar

    Hello Feodor,

    An example commit message can here seen here:

    https://github.com/gep13/gep13.github.io/commit/d8e959fb1fc90739f6dc35906a07a96a7ff9d65e

    and another here:

    https://github.com/gep13/gep13.github.io/commit/f823eb39767eac6b43d1f6acfcb81e8949b17249

    The commit message is relatively simplistic, with just the text "Created", and then the name of the file that is being uploaded. Assuming that this stayed consistent, a regex could be assigned for something like "Created.*\.(png|jpg|jpeg|bmp|gif)" (note, completely off the top of my head, so likely not ideal :-))

    I seem to have generated some discussion about including the ability to modify the commit message which is made my Prose.io, so something "might" happen there, but it is unclear. If I think you can help, I will certainly pull you into the discussion. :-)

    Thanks

    Gary

  4. Support Staff 4 Posted by Feodor Fitsner on 08 Sep, 2014 09:08 PM

    Feodor Fitsner's Avatar

    OK, I think filtering by commit message makes sense and helps with some more interesting scenarios. To avoid obstructing UI with yet another feature I could add an option to appveyor.yml, something like:

    skip_commits:
      message: Created.*\.(png|jpg|jpeg|bmp|gif)
    

    In the future we can add more to it, like "skip commits from that author" :)

    What do you think?

  5. 5 Posted by gep13 on 08 Sep, 2014 09:12 PM

    gep13's Avatar

    I think that sounds amazing! :-)

    Please let me know if there is anything I can help with in terms of testing this out.

  6. 6 Posted by gep13 on 08 Sep, 2014 09:13 PM

    gep13's Avatar

    Would this replace the [ci skip] in the commit message, or be an additional configuration check?

  7. Support Staff 7 Posted by Feodor Fitsner on 08 Sep, 2014 09:16 PM

    Feodor Fitsner's Avatar

    That will be an addition to that.

  8. 8 Posted by gep13 on 08 Sep, 2014 09:18 PM

    gep13's Avatar

    Cool! Sounds like a plan to me. :-)

  9. 9 Posted by gep13 on 20 Sep, 2014 10:04 AM

    gep13's Avatar

    Just wanted to touch base to see if there was an ETA on this request.

    Thanks!

  10. Support Staff 10 Posted by Feodor Fitsner on 20 Sep, 2014 04:46 PM

    Feodor Fitsner's Avatar

    Will deliver this next week.

    -Feodor

  11. 11 Posted by gep13 on 20 Sep, 2014 06:33 PM

    gep13's Avatar

    That is great news! Looking forward to trying it out!

    Gary

  12. Support Staff 12 Posted by Feodor Fitsner on 23 Sep, 2014 10:00 PM

    Feodor Fitsner's Avatar
  13. 13 Posted by gep13 on 24 Sep, 2014 05:44 AM

    gep13's Avatar

    Perfect, thank you! As a suggestion, if you don't use something else already, you might want to check out huboard.com. Gives you Kanban functionality on top of GitHub issues for tracking progress. I find it really useful for the projects I work on.

  14. Support Staff 14 Posted by Feodor Fitsner on 02 Oct, 2014 06:50 PM

    Feodor Fitsner's Avatar

    Documented here: http://www.appveyor.com/docs/how-to/skip-build#commits-filter

    Give it a try and let me know how that worked for you.

  15. 15 Posted by gep13 on 10 Oct, 2014 08:15 PM

    gep13's Avatar

    Yip, looks like this is working! :-)

    This commit:

    https://github.com/gep13/gep13.github.io/commit/67b79c07e837d051031...

    Didn't result in a build being triggered:

    https://ci.appveyor.com/project/GaryEwanPark/gep13-github-io/history

    Thanks!

    Gary

  16. gep13 closed this discussion on 10 Oct, 2014 08:15 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac