This plug-in doesn't work with JIRA Cloud. It needs to be refactored from using Jira Rest Java Client to JIRA REST Java Client Implementation.
Plug-in is designed for sending build results from TeamCity in JIRA ticket and it is also possible to move the issue through your workflow. Report are sent as comments to the issue.
- Sending TeamCity build results from any VCS branch;
- Moving the issues through workflow, depending on the results of TeamCity builds;
- Sending report of TeamCity build on several issues at the same time.
-
Install plug-in in < TeamCity Data Directory >/plugins and restart TeamCity server;
-
Add Build Step JIRA Reporter to your configuration. Important! In order to create an account Build Step must be the last step in hierarchy;
-
Plug-in parameters:
Get issue from:
Field, determining the method of getting id issue:
JIRA Reporter - connected id of the issue is indicated in the plug-in settings;
VCS Comment - issue id is taken from vcs commit,
Identifiers are collected from the related issues of all builds until the last successful one. To do this, you need to configure TeamCity integration with your task tracker (Administration -> Problem Tracking -> Create a new connection).
Example:
git commit -m "fix for EXAMPLE-123"
Enable issue transition:
Movement of the issue through the workflow turns on depending on test results;
Enter your JIRA workflow for issue transitioning:
Appears when turning on Enable issue transitioning;
Field to insert the requirements for issue movement through workflow.
If you need to set the resolution after the transition, the resolution name can be defined as Resolution[<resolution name>] as the third parameter of the transition rule
Format for inserting requirements:
SUCCESS:In Progress-Resolve Issue-Resolution[Fixed],Closed-Deploy,In Testing-Close Issue;
FAILURE:In Progress-Reopen Issue,In Testing-Reopen Issue,Closed-Reopen Issue;
Enable SSL connection:
Needs to be turned on if JIRA server uses SSL connection.
Activate checkbox for editing template, and write yourself template of JIRA comment.
Also you have defined parameters:
${build.id}
${build.type}
${build.name}
${build.number}
${build.status}
${build.status.style}
${build.weburl}
${build.branchName}
${tests.results}
Caution:
If TeamCity project has one brunch applied then there is no ${build.branchName} attribute. You'll see 'branchName doesn't exist' message. If you want to use 'branchName' you have to set more than one branch in TeamCity build configuration.
Example:
${build.type.name} : ${status.build}
${test.results}
Template example.
Run mvn package
into main directory, then jirareporter.zip will be prepare in ./target
directory