All Projects → jenkinsci → Jira Plugin

jenkinsci / Jira Plugin

Licence: mit
Jenkins jira plugin

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Jira Plugin

Auto
Generate releases based on semantic version labels on pull requests.
Stars: ✭ 1,120 (+646.67%)
Mutual labels:  jira
Jirafs
Edit your Jira tickets using locally-stored text files in a git/hg-inspired way
Stars: ✭ 100 (-33.33%)
Mutual labels:  jira
Git Changelog Lib
Library for parsing and generating a changelog, or releasenotes, from a GIT repository
Stars: ✭ 117 (-22%)
Mutual labels:  jira
Devops Kompose
[DEPRECATED] DevOps tools on Kubernetes with Helm charts
Stars: ✭ 78 (-48%)
Mutual labels:  jira
Jira
Python JIRA Library is the easiest way to automate JIRA. Support for py27 was dropped on 2019-10-14, do not raise bugs related to it.
Stars: ✭ 1,321 (+780.67%)
Mutual labels:  jira
Jira Vim
A vim plugin to access your Jira workspace directly from Vim
Stars: ✭ 113 (-24.67%)
Mutual labels:  jira
Dashboard
📺 Create your own team dashboard with custom widgets. Built with Next.js, React, styled-components and polished.
Stars: ✭ 1,007 (+571.33%)
Mutual labels:  jira
Chyle
Changelog generator : use a git repository and various data sources and publish the result on external services
Stars: ✭ 137 (-8.67%)
Mutual labels:  jira
Actionview
An issue tracking tool based on laravel+reactjs for small and medium-sized enterprises, open-source and free, similar to Jira.
Stars: ✭ 1,357 (+804.67%)
Mutual labels:  jira
Mirrorgate
MirrorGate DevOps Dashboard
Stars: ✭ 117 (-22%)
Mutual labels:  jira
Metasearch
Search aggregator for Slack, Google Docs, GitHub, and more 🔍
Stars: ✭ 81 (-46%)
Mutual labels:  jira
Ox Jira.el
Org-mode export backend for JIRA markup
Stars: ✭ 88 (-41.33%)
Mutual labels:  jira
Jira Prometheus Exporter
Prometheus Exporter For JIRA
Stars: ✭ 113 (-24.67%)
Mutual labels:  jira
Markra
A Markdown-to-JIRA syntax editor.
Stars: ✭ 64 (-57.33%)
Mutual labels:  jira
Jira Azuredevops Migrator
Tool to migrate work items from Atlassian Jira to Microsoft Azure DevOps/VSTS/TFS.
Stars: ✭ 120 (-20%)
Mutual labels:  jira
Docker Atlassian Jira Data Center
Dockerized Atlassian Jira Data Center for local testing during plugin development.
Stars: ✭ 53 (-64.67%)
Mutual labels:  jira
Atlassian Helper
Atlassian helper
Stars: ✭ 105 (-30%)
Mutual labels:  jira
Jiracli
Simple command line interface for Jira
Stars: ✭ 145 (-3.33%)
Mutual labels:  jira
Review Reporter
Bot for reporting Google Play Reviews on Slack with possibility to fast reply and creating Jira issues from low rating reviews.
Stars: ✭ 135 (-10%)
Mutual labels:  jira
Git Chglog
CHANGELOG generator implemented in Go (Golang).
Stars: ✭ 1,895 (+1163.33%)
Mutual labels:  jira

Jenkins Jira Plugin

Documentation GitHub release Jenkins CI Travis CI

Jenkins Plugin Installs Coverage Contributors

About the plugin

This plugin integrates with Jenkins the Atlassian Jira Software (both Cloud and Server versions). For bug reports, see bugs or all open issues. For documentation, see official plugin site.

Reporting Bugs

Before reporting a new bug, check currently open issues in JIRA.

When creating a new issue, provide as much information as possible including:

  • steps to reproduce the issue and possible workarounds if known (Description field)

  • Jenkins and plugin versions from Jenkins Script console at http://<jenkins-ip:8080>/script:

println("Jenkins:" + Jenkins.instance.getVersion())

Jenkins.instance.pluginManager.plugins.each{
  plugin ->
    println ("${plugin.getDisplayName()} (${plugin.getShortName()}): ${plugin.getVersion()}")
}

Contribute or Sponsor!

We all love Open Source, but... Open Source Software depends on contributions of fellow developers. Please contribute by opening Pull Requests or if you are not a developer, consider sponsoring one of the maintainers.

Configuring the plugin

Usage with Jira Cloud

With Atlassian Jira Cloud, it's not possible to create a user without an email, so you need to create API token that will be used as a service user by Jenkins to execute API calls to Jira Cloud - follow Atlassian API tokens documentation

Then create a global Jenkins credential:

  • put Atlassian ID email as username
  • API token as password.

You can check if your API token works correctly by getting a correct JSON issue response with this command (where TEST-1 is an example issue in your project):

$ curl -X GET -u <email>:<API token> -H "Content-Type: application/json"  https://<YourCloudInstanceName>.atlassian.net/rest/api/latest/issue/TEST-1

Also make sure that CAPTCHA is not triggered for your user as this will prevent the API token to work - see CAPTCHA section in Atlassian REST API documentation.

Using Jira REST API

This plugin has an optional feature to update Jira issues with a back pointer to Jenkins build pages. This allows the submitter and watchers to quickly find out which build they need to pick up to get the fix.

Jira Issue links in build Changelog

When you configure your Jira site in Jenkins, the plugin will automatically hyperlink all matching issue names to Jira.

If you have additionally provided username/password to Jira, the hyperlinks will also contain tooltips with the issue summary.

Updating Jira issues with back pointers

If you also want to use this feature, you need to supply a valid user id/password. If you need the comment only to be visible to a certain Jira group, e.g. Software Development, enter the groupname. 

Now you also need to configure jobs. I figured you might not always have write access to the Jira (say you have a Jenkins build for one of the Apache commons project that you depend on), so that's why this is optional.

And the following screen shows how Jira issue is updated:

By taking advantages of Jenkins' fingerprint feature, when your other projects that depend on this project pick up a build with a fix, those build numbers can also be recorded in Jira.

This is quite handy when a bug is fixed in one of the libraries, yet the submitter wants a fix in a different project. This happens often in my work, where a bug is reported against JAX-WS but the fix is in JAXB. 

For curious mind, see this thread for how this works behind the scene.

Referencing Jira Release version 

To reference Jira Release versions in your build, you can pull these releases directly from Jira by adding the Jira Release Version Parameter. 

This can be useful for generating release notes, trigerring parameterized build, etc.

Generating Release Notes

You can also generate release notes to be used during your build. These notes can be retrieved from an environment variable. See the Maven Project Plugin for the environment variables found within the POM.

After your build has run, you can also have the plugin mark a release as resolved. This typically will be a release you specified in your Build Parameters.

The plugin can also move certain issues matching a JQL query to a new release version.

Sample usage of generated Release Notes:

Jira Authentication & Permissions required

Note: As a rule of thumb, you should be always using a service account (instead of a personal account) to integrate Jenkins with Jira.

Make sure that the Jira user used by Jenkins has enough permissions to execute its actions. You can do that via Jira Permission Helper tool.

  • For creating Jira issues, the user has to be able to Create Issues in the specified project
  • If you additionally enter assignee or component field values, make sure that:
    • both of the fields are assigned to the corresponding Jira Screen
    • the Jira user is Assignable in the project
    • the Jenkins Jira user can Assign issues

System properties

Property Name Functionality Change
-Dhudson.plugins.jira.JiraMailAddressResolver.disabled=true Use to disable resolving user email from Jira usernames. Currently there is no option for this in UI.

Related Resources

Common issues

Jenkins<>Jira SSL connectivity problems

If you encounter stacktraces like this:

Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

make sure the JRE/JDK that Jenkins master is running (or the Jenkins slaves are running) contain the valid CA chain certificates that Jira is running with. You can test it using this SSLPoke.java class:

$ wget -O SSLPoke.java https://gist.githubusercontent.com/warden/e4ef13ea60f24d458405613be4ddbc51/raw/7f258a30be4ddea7b67239b40ae305f6a2e98e0a/SSLPoke.java

$ /usr/java/jdk1.8.0_131/bin/javac SSLPoke.java

$ /usr/java/jdk1.8.0_131/jre/bin/java SSLPoke jira.domain.com 443
Successfully connected

References:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].