Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authenticate Jenkins users against JIRA

Tags:

jenkins

jira

We are currently setting up Confluence, JIRA and Jenkins and I would rather have only one user database that all tools can use than having to create separate accounts in each tool. Google tells me that Jenkins can authenticate and authorize users against Atlassian Crowd. Confluence can use Crowd and also JIRA for user management.

But can Jenkins use JIRA (not Crowd) as its user database, to authenticate and authorize users against it?

like image 521
Florian Avatar asked Mar 14 '13 13:03

Florian


People also ask

What is the difference between Jira and Jenkins?

Jira is a Software Development Tool, whereas Jenkins is an Open-Source Automation tool. The only purpose behind Jenkins Jira Integration is to create a free, easy, and secure way to connect the servers running behind the firewall.

Can Jenkins create Jira ticket?

Jira can be used as Issue Tracking, Project management,etc for your project and brings Agility with its Scrum board and processes. The most common use case is to update Jira ticket as and when there is an update on Jenkins build job.


1 Answers

One method is with the Crowd2 (Jenkins plugin).

From Jira

  1. Goto Admin Cog > User Management
  2. "JIRA User Server" (left side)
  3. Click "+Add application" (top right side)

    Notes: To specify a port with the IP address(es) in Jira, use XX.XX.XX.XX/PORT format. Jira user must have admin permissions.

    Jira User Server

From Jenkins

  1. Goto "Manage Jenkins" (left side) > Manage Plugins > Available Tab
  2. Download crowd2 plugin
  3. Goto "Manage Jenkins" (left side) > "Configure Global Security"

    Notes: Requires Jenkins admin access.

    Configure Global Security

like image 54
Siva Mandadi Avatar answered Oct 24 '22 18:10

Siva Mandadi