Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I integrate Jenkins with Redmine?

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.

like image 471
dextervip Avatar asked Apr 13 '12 06:04

dextervip


People also ask

How does Jenkins integrate with redmine?

Login as desired user, visit http://redmine/my/account, copy key from "API access key" and paste it into job on Jenkins.

How do you integrate with Jenkins?

How does Jenkins integrate with Git? Go to Jenkins dashboard, click on “Manage Jenkins.” Now follow these steps- Manage Plugins -> 'Available' tab -> Enter Git in search bar and filter -> Install required plugin. After the installation, all you need to do is click on “Configure System” and go to the 'GitHub' section.

What all can be integrated into Jenkins?

Jenkins achieves Continuous Integration with the help of plugins. Plugins allow the integration of Various DevOps stages. If you want to integrate a particular tool, you need to install the plugins for that tool. For example Git, Maven 2 project, Amazon EC2, HTML publisher etc.


2 Answers

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.
like image 63
Larry Cai Avatar answered Sep 20 '22 13:09

Larry Cai


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.

like image 24
Joro Avatar answered Sep 17 '22 13:09

Joro