Jump to content
khan-amil

Automating workflow with jira and mergebots

Recommended Posts

Hi,

I'm currently setting up plastic and wanted to automate parts of the workflow between jira and plastic. 

I've looked into mergebot(trunkbot), and it looked like a perfect fit : when a jira task is put as validated/done, mergebot sees this and tries to merge the branch to /main.

Except, trunkbot seems to only checks branches attributes, and not the jira state, even though the setup part of the bot seems to indicate that it should poll for jira status?

Am I missing something with the setup, or wrongly setup something?

Or does it need some extra steps to link all together?

Share this post


Link to post
Share on other sites

Hi,

Regarding the mergebot configuration, I guess you have followed the steps from:

http://blog.plasticscm.com/2018/09/add-mergebot-to-your-repo.html

Also, I guess you have filled all the "Issue Tracker Integration" values in the form and also created the plug.

The mergebot is monitoring the branch attributes. For instance, once the branch has the attribute status=resolved, it will also check the status value in the JIRA task to check if it's ready to be merged. 

Regards,

Carlos.

Share this post


Link to post
Share on other sites

Yeah I followed this blog post. And if jira isn't linked to it then it's working as intended.

But if jira is linked then the bot either stops doing anything(if no jira task is linked to the branch), or fails, so I guess I made some kind of mistake while setting it up.

Does the jira plug need to have the full path to the project, or only the root path?

Can I find some logs related to these bots somewhere to dig into that?

Share this post


Link to post
Share on other sites

Hi, would you mind reaching us at support@codicesoftware.com? We can arrange a gotomeeting session and help you with the setup.

Regards,

Carlos.

Share this post


Link to post
Share on other sites

Just as an update for this thread, I was in contact with @khan-amil debugging this issue and the problem with the JIRA plug was configuration related. There was a missing field to be filled in the mergebot configuration.

Regards,

Carlos.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...