Webhook style deployment provider
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!
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
Support Staff 1 Posted by Feodor Fitsner on 07 Aug, 2014 08:22 PM
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 Posted by byron on 19 Aug, 2014 10:54 PM
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.
Support Staff 3 Posted by Feodor Fitsner on 20 Aug, 2014 12:04 AM
Will deliver it this week.
4 Posted by byron on 20 Aug, 2014 02:26 PM
That is excellent news!
Support Staff 5 Posted by Feodor Fitsner on 21 Aug, 2014 05:33 AM
It's been deployed. Could be configured either on UI or in
appveyor.yml
:You can view its payload in Requestb.in. We'll add docs tomorrow.
Let me know how that works for you.
6 Posted by byron on 25 Aug, 2014 05:13 PM
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 Posted by byron on 25 Aug, 2014 05:33 PM
It finally failed after 30 minutes: "Build execution time has reached the maximum allowed time for your plan (30 minutes)."
8 Posted by byron on 25 Aug, 2014 05:39 PM
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
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:47 AM.