How to get Jira data and make it displayed in Jenkins - jenkins

I have my project dashboards in JIRA which i need to establish in Jenkins once the project build is done successfully. When i search over internet everything says how to integrate and once the build is finished Jira Plugin will raise/update issues to JIRA. But I want to get the data from JIRA and display in Jenkins dashboard like we display cucumber or Junit reports.
Do you guys have any idea on how to do that?

Related

Configure JIRA Trigger Plugin for Jenkins multi branch pipeline

I have Jenkins Mutibranch pipeline. I want to integrate my Jira with one of multibranch project. I have installed the JIRA Trigger Plugin and configured Webhook in Jira. however, when I checked in my Jenkins job it does not show me the B***uild when an issue is updated in JIRA*** but it shows when I go to View Configuration in the particular branch. it allows me to select the Build when an issue is updated in JIRA but there is no option to save the changes. I know this might be a reason the option is view only. but how can I configure this?
Is anyone configured JIRA Trigger Plugin with Jenkins mutibranch project where using Jenkinsfile? and what is the correct way of integrating this?
Should I do some coding in the Jenkins file to get this done?

How to get jenkins pipeline test results into ReportPortal.io instance?

I have an automated Jenkins workflow that runs and tests a java project. I need to get all the data and results that are outputted by Jenkins into Report Portal (RP).
Initially, I was under the impression that you have to install the ReportPortal.io Jenkins plugin to be able to configure Jenkins to communicate with RP.
However, it appears that the plugin will eventually be deprecated.
According to one of the RP devs, there are APIs that can be used, but investigating them on our RP server does not give very clear instructions on what every API does or if it is what is required to get test data from Jenkins to RP.
How then do I get Jenkins to send all generated data to RP?
I am very familiar with Jenkins, but I am extremely new to Report Portal.
ReportPortal is intended for test execution results collection, not for jenkins logs gathering.
In two words, you need to find reporting agent at their github organization which depends on your testing framework (e.g. junit, testng, jbehave) and integrate it into your project.
Here is example for TestNG framework:
https://github.com/reportportal/example-java-TestNG/

Integration Jira Cloud with Jenkins

I want to integrate Jenkins with JIRA Cloud.
I want Jenkins to start build job when i'm updating Issue Status in JIRA.
example: when the issue in jira is going from status IN PROGRESS to DEV COMPLETED, I want Jenkis to start a build.
regards, Maja
Usually the flow is a little bit different.
After you done with the development you should add JIRA ticket number in commit.
Then create pull request (if you use Git as VCS) and merge it to main branch.
Git server will trigger build on the Jenkins side (you should find Jenkins plugin for your case).
After build is done there Jenkins can send update status to Jira (via Jenkins JIRA plugin
There are some variations. For example you want to allow merge only when build on Jenkins was successful. In this case JIRA update should be performed by Git service.
Thank you for your fast response, but we got different situation than the given answer. I will try to explain clearly.
1. we got Jira on cloud that successfully communicate with Gitlab. (there is a build in jenkins after commit in Jira)
2. and we got one test Jenkins on our local machine
Jira is configured in Jenkins and we got all needed plugins in Jenkins.
Now we want, with every changed status on the issue in Jira (from IN PROGRESS to DEV COMPLETED), Jenkins to make an automatic build on the job.
Additionaly, Is there any Jenkins Plugin for Jira CLOUD that could help us?
At this time, there is no Jenkins plugin / add-on for JIRA cloud, even though it is in high demand. It is rumored there may be one coming out in November / December 2017 as a beta.
If you are using Bitbucket, I'd recommend checking out Pipelines. Or, take a look at Bamboo or TeamCity as these tools integrate directly with JIRA Software Cloud.

how to publish klocwork results on sonarqube

We are running both: Klocwork for C++ and SonarQube for Java and C# projects as a CI process using Jenkins. Since the SonarQube dashboard is much better, I would like to publish Klocwork results on the SonarQube.
Is it possible using some kind of Jenkins plugin? Any other option?
There is a SonarQube plugin for Klocwork available on this updated page: www.emenda.com/klocwork-sonarqube-plugin
You will need to complete the request form on the web page in order to obtain the resource.
To publish Klockwork results in SonarQube you need not a Jenkins plugin but a SonarQube plugin. There appears to be one but I have no experience with it, and the screenshots on the site are quite old.
If you don't have any luck with it, another option would be to develop your own plugin. If you decide to go that route, you can post specific plugin development questions to the SonarQube Google Group.

jenkins jira integration using ZAPI and zephyr

i have installed Zephyr plugin in jenkins and ZAPI,Zephyr plugin in jira and able to establish the connection as well
but in drop down am not able view the jira project
can anyone help me to resolve this issuein post build not able to view the project name in drop down
You still have to complete the global configuration for Zephyr in Jenkins.
Should be somewhere in Manage Jenkins --> Configure System --> search for Zephyr here.
I've found the plugin a little non-intuitive. Even if you have configured the global configuration section, upon adding the the Zephyr component to a job for the first time, you must save the job. When you edit the job you'll be able to select the project, cycle etc.

Resources