Add a version/build tag when build is successful
I'm wondering if its possible, that when a push is done to appharbor, once the build completes successfully if there is a way of generating a version number and adding a tag back to git?
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
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 rune on 03 May, 2016 02:12 AM
Hi,
Yep the service hooks allow for doing just that. When a build completes it'll invoke the service hooks URL, which contain the status of the build, the AppHarbor build id (unique) as well as the commit id, message and some related application information. This should allow for integration with various third party services, but it won't add the tag back to git -- that would probably also be a bit to "magic" and a bit confusing.
That being said there's already integration in place with both Bitbucket and GitHub which will automatically post the build status back to each service after the completion of a build. With Bitbucket it's added as a comment on the relevant commit, and with GitHub AppHarbor will use the commit status API to post the status. The latter conveniently integrates with GitHub's pull request feature so you get a warning before merging a branch online, and have the data available in a pull request.
To use the Bitbucket and/or GitHub integrations you'll just need to configure your repository using the integration links on the application's "Settings" page. Have you already done that? Let me know the application name if you have and I'll be happy to take a closer look if you're not seeing the commit comments made by AppHarbor post-build.
Best,
Rune
rune closed this discussion on 03 May, 2016 02:12 AM.