Hey guys, in my company we use JIRA a lot, and now...
# seed
a
Hey guys, in my company we use JIRA a lot, and now our PM is requesting to automate the “done” state of stories when a deployment is done. There is a bunch of automations for Jira, like Webhook, Bitbucket statuses… bla bla…. Do you guys are doing any sort of integration between SEED -> JIRA? I would like to hear ideas. If not, what’s the recommended way to trigger a webhook from SEED when a deployment is succesfull? The problem with the webhook, is that I need to list the tickets that were fixed/going to be deployed. Not sure if I can take that from GIT easily. Or also, could be a hook into SST?
s
You were on the right path with Git, but it seems like you veered off that path. Seed should not integrate with Jira
The problem with the webhook, is that I need to list the tickets that were fixed/going to be deployed. Not sure if I can take that from GIT easily.
Yes you can take it from Git easily, if you use https://semver.org/ and associated tooling However, if you’re using SST you’re most likely building a web app, so I think ALL of your problems (even the ones you didn’t know you had) would be solved with a better suited Git flow combined with Feature Toggles
f
Thanks @solsglasses!
@Adrián Mouly You can setup webhook build notifications https://seed.run/docs/adding-build-notifications.html#custom-webhooks
Does that help with interacting with JIRA?
And there’s the Post-Deploy phase where you can make API calls to JIRA.
a
I was thinking to do that. Any idea how I can send the ticket numbers on the hook body?
f
Where would u get the ticket number from? Is it the pull request id, or is it in the commit message?
a
In the commit message, most likely.. or we can put it on the PR message too.
f
I see. Would it work if you made a call to JIRA in Post-Deploy phase. For example: • gets commit messages
git log master..HEAD
• parse for the ticket number • make a call to JIRA
a
Yeah I think so.
I think that’s what I need to do.
POST DEPLOY it’s called ONLY if deployment worked?
Or if it fails too?
Because I do not want to call the hook if SEED fails for some reason.
f
Yeah it only gets called on success