AppVeyor.yml in generic git repositories

jared.swarts's Avatar

jared.swarts

28 Jul, 2015 06:32 PM

It seems like from this post that currently only a list of hosted git repositories will allow you to use an appveyor.yml for build configuration. Is there a work around for this if we are, for example, running gitosis?

  1. Support Staff 1 Posted by Feodor Fitsner on 29 Jul, 2015 12:10 AM

    Feodor Fitsner's Avatar

    Hi Jared,

    appveyor.yml contents can be passed in webhook payload provided you can setup POST-RECEIVE hook on git server side: https://github.com/appveyor/webhooks/tree/master/git

  2. 2 Posted by ksykora on 11 Oct, 2016 08:01 PM

    ksykora's Avatar

    Just following up on this... is the content of the payload literally the entire contents of the appveyor.yml or is there a header / footer / other format that needs to go with it?

  3. 3 Posted by ksykora on 11 Oct, 2016 09:13 PM

    ksykora's Avatar

    Figured it out, the payload needs to look like this:

    {
      "ref": "refs/heads/master",
      "before": "refs/heads/master",
      "after": "3d15836d4600970b74bad05e691fea303fec11b6",
      "commits": [
        {
          "author": {
            "name": "Ken Sykora",
            "email": "[email blocked]"
          },
          "id": "3d15836d4600970b74bad05e691fea303fec11b6",
          "timestamp": "2016-10-11T16:08:57-05:00",
          "message": "test5"
        }
      ],
      "head_commit": {
        "author": {
          "name": "Ken Sykora",
          "email": "[email blocked]"
        },
        "id": "3d15836d4600970b74bad05e691fea303fec11b6",
        "timestamp": "2016-10-11T16:08:57-05:00",
        "message": "test5"
      },
      "repository": {
        "name": "web.dotcom"
      },
      "config": "version: 1.0.{build}\nbefore_build:\n- cmd: nuget restore Project.sln\nbuild:\n  project: Project.sln\n  verbosity: minimal"
    }
    
  4. 4 Posted by Ilya Finkelshte... on 11 Oct, 2016 09:16 PM

    Ilya Finkelshteyn's Avatar

    Good :) Also you may be interesting in watching this https://github.com/appveyor/ci/issues/1089 issue.

    --ilya.

  5. 5 Posted by dragon788 on 07 Dec, 2016 07:29 PM

    dragon788's Avatar

    As updated in that linked issue, you can also use GitHub's Gist or BitBucket's Snippets over HTTPS to host your appveyor.yml. https://github.com/appveyor/ci/issues/1089#issuecomment-265544933

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:09 AM.

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

Recent Discussions

09 Jul, 2026 04:35 PM
07 Jul, 2026 07:22 PM
30 Jun, 2026 08:51 PM
26 Jun, 2026 03:33 PM
25 Jun, 2026 12:31 AM

 

05 Jun, 2026 07:28 PM
29 May, 2026 02:17 PM
28 May, 2026 06:46 PM
21 May, 2026 04:32 AM
12 May, 2026 05:50 PM
12 May, 2026 04:16 PM