How can I integrate Jenkins with Redmine?
Asked Answered
D

2

18

I would like to integrate Jenkins with Redmine. If some build breaks, Jenkins would open an issue in Redmine to notify it with the console output.

How can I do it? Are there any plugins? Are there any implementation guides? I couldn't find a solution yet.

Doubleacting answered 13/4, 2012 at 6:31 Comment(0)
B
13

There are two ways to achieve this

  1. install hudson plugin inside redmine, see http://www.redmine.org/plugins/t-ando_redmine_hudson , it will let you know the build inside redmine. (**2014.5.7 [Updated] change to redmine plugin list **)

  2. install redmine plugin inside jenkins (hudson), unfortunately the plugin is not maintained any more, https://wiki.jenkins-ci.org/display/JENKINS/Redmine+Plugin . And JIRA jenkins plugin is a way how redmine plugin should be supported. ([Updated] the plugin is back since 2013)

[updated] I tried to add this functions for solution 2 in 2011.2, see my blog: http://larrycaiyu.com/blog/2011/02/24/associate-ci-build-information-in-redmine-issue-by-using-redmine-rest-api/, but I stopped after that, because

  1. In the community, it seems solution 1 is preferred.
  2. lots of functions are already inside JIRA, it is better to persuade them to make it as a common issue plugin inside jenkins.
Burroughs answered 16/4, 2012 at 1:29 Comment(7)
Well that's not exactly what I am looking for, those plugins doesn't report failed builds as a redmine issueDoubleacting
so you mean codeslife.com/2011/02/24/… which i tried one year ago?Burroughs
Yes, Is it stopped since that post?Doubleacting
Yes, see my updated answer for the reason. And if your needs is simple, then the change is not so much, while to make that plugin works in all the case, it will be complicated.Burroughs
update: is seems the jenkins-redmine plugin is actively developed again (3 new releases since your answer)Disport
@LarryCai The link for the Hudson plugin seems to be changed. Could you edit it?Joggle
@Enmos:guess it is temple down, anyway I changed to redmine plugin list where you can see code repo and webpage as wellBurroughs
G
2

You can try the e-mail-to-issue option in Redmine.

  1. Configure Jenkins to send an e-mail to Redmine with detailed report.
  2. Configure Redmine to accept the e-mail and transfer it to the issue.

You can configure whatever template you wish so the reports will be user-friendly. Further more Redmine has a simple incoming mail parser so that you can omit info you don't need.

No plugins needed, only settings in both tools.

Glucoside answered 16/10, 2013 at 9:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.