Webhook style deployment provider

byron's Avatar

byron

07 Aug, 2014 08:03 PM

I am trying to integrate some systems to automate the build of a phonegap application. My CI build is on AppVeyor and, after the app builds successfully and creates artifacts, I'd like to "deploy" my app to an unsupported deployment location. I thought I would try WebDeploy and direct the deployment to my custom server, but it seems a WebDeploy server is not something I can just throw together. Then I tried NuGet and it wants me to include a manifest file. I could probably go down that road, but it's going to be a little too involved and hacky. The other options are all very specialized and I imagine I will run into some more issues with those (not to mention trying to use them for something they weren't meant for).

So, my suggestion is to give me another, more generic deployment provider: "Webhook Deployment" -- Ideally this would post to the given url using the same kind of config as the notifications webhook, but would include the artifacts as part of the payload. This would satisfy my immediate need and would probably make the deployment mechanism flexible enough that I could integrate with an endless number of platforms (especially when it's not included in the list of deployment providers).

I have decided to use a webhook notification temporarily to get the same effect. After I get the notification, my server downloads the file and then deploys it to the destination platform. "It works" but it's hacky and it deploys on everything, including pull-requests. I really think a webhook deployment provider could be really sweet!

  1. Support Staff 1 Posted by Feodor Fitsner on 07 Aug, 2014 08:22 PM

    Feodor Fitsner's Avatar

    Right, while reading I was about to suggest using webhook as it contains artifact URLs - it's good it works for you as a proof-of-concept. OK, I will add a new item to implement this provider.

  2. 2 Posted by byron on 19 Aug, 2014 10:54 PM

    byron's Avatar

    Feodor, do you have any ETA on the development of this new deployment provider. I have a product in development that needs it so I'd like some help planning.

  3. Support Staff 3 Posted by Feodor Fitsner on 20 Aug, 2014 12:04 AM

    Feodor Fitsner's Avatar

    Will deliver it this week.

  4. 4 Posted by byron on 20 Aug, 2014 02:26 PM

    byron's Avatar

    That is excellent news!

  5. Support Staff 5 Posted by Feodor Fitsner on 21 Aug, 2014 05:33 AM

    Feodor Fitsner's Avatar

    It's been deployed. Could be configured either on UI or in appveyor.yml:

    deploy:
      - provider: Webhook
        url: http://webhook.url
        authorization: Scheme <value>    # optional "Authorization" header
    

    You can view its payload in Requestb.in. We'll add docs tomorrow.

    Let me know how that works for you.

  6. 6 Posted by byron on 25 Aug, 2014 05:13 PM

    byron's Avatar

    Feodor, I'm testing out the webhook deployment to requestb.in. Not sure if it's because of the webhook provider, but the build looks to be stuck. Check it out: https://ci.appveyor.com/project/bsommardahl/gifthubmobile/build/1.0...

    Here's the target requestb.in: http://requestb.in/1hy3j2p1?inspect

  7. 7 Posted by byron on 25 Aug, 2014 05:33 PM

    byron's Avatar

    It finally failed after 30 minutes: "Build execution time has reached the maximum allowed time for your plan (30 minutes)."

  8. 8 Posted by byron on 25 Aug, 2014 05:39 PM

    byron's Avatar

    Another build started with the same config with the webhook deployment, and got stuck at the end again. I cancelled the build, but now the "cancel" seems stuck. I've never seen a cancel take more than 1/2 a second: http://cl.ly/image/0w2k371b2l0N

  9. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:47 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