Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhooks #15

Closed
lukasberlin opened this issue Mar 4, 2015 · 11 comments
Closed

Webhooks #15

lukasberlin opened this issue Mar 4, 2015 · 11 comments
Assignees

Comments

@lukasberlin
Copy link

In the beginning I used the plugin just to import my bitbucket projects into strider. After a while I found the possibility to use Webhooks to trigger the Strider jobs. I configured the environment variables and looked for a possibility to add the hooks using the plugin and couldn't find it. So I tried to start from scratch. I reset the complete Strider DB and imported my BitBucket account again. This worked, the plugin automatically created a Webhook in BitBucket and the job is triggered on commits.

Is it possible to just create the Webhook without resetting the complete DB, using the plugin or is it possible to find the URL that has to be used for the Webhook in order to trigger the job, so that I can create the hook manually?

@DJercic
Copy link

DJercic commented Jun 12, 2015

How did you get bitbucket to create the webhooks? I tried but somehow it's not working for me.

I start strider with SERVER_NAME and NODE_ENV variables, login to bitbucket, oauth token is created, but webhooks aren't

@lukasberlin
Copy link
Author

I also use PLUGIN_BITBUCKET_APP_KEY and PLUGIN_BITBUCKET_APP_SECRET to start Strider. Webhooks were automatically created when I imported my projects from BitBucket.

@knownasilya
Copy link
Member

There are some plans to expose the webhooks that Strider creates, so if you don't have permissions you can still add a project, and trigger manual test/deploy, but also get instructions on how to configure the webhooks once you do have permissions. See this comment: Strider-CD/strider-gitlab#23 (comment)

@macropin
Copy link

@knownasilya It would be good to expose the method for reinstalling the webhooks. Right now I'm having to manually delete and recreate all our projects to get the webhooks reinstalled.

@oliversalzburg
Copy link
Member

@macropin Do you not get these buttons with the bitbucket provider?

If not, then, yeah, I agree, the functions should be exposed, just like the other providers have.

@macropin
Copy link

@oliversalzburg I think the answer is no.. which page are those buttons shown?

@oliversalzburg
Copy link
Member

@macropin On the project configuration page for the provider.

@macropin
Copy link

@oliversalzburg This is the only option for bitbucket. And it doesn't work (#19)
screen shot 2015-08-10 at 11 14 02 am

@oliversalzburg
Copy link
Member

This should be fixed in 33e35de Please give it a try if you can.

Also, please note that the hooks that Strider creates are listed in the Services section in the project configuration on Bitbucket, not in the Webhooks section.

@macropin
Copy link

@oliversalzburg just tested now, and this is working for me. Thanks.

@oliversalzburg
Copy link
Member

Awesome 👍 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants