Hi,
I am trying to integrate JIRA with Jenkins and I want to send the build Information and deployment information from jenkins to JIRA. Here is my setup.
My Source code is available in GITLAB and for any push event to the main branch a GITLAB webhook triggers a job in jenkins. Here the sample pipeline for my job.
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building...'
}
post {
always {
jiraSendBuildInfo()
}
}
}
}
}
I have added the commit message and branch name with the JIRA Task KEY But still I am still not able to see anything updated in JIRA.
Here is my Pipeline output
Started by GitLab push by admin [Pipeline] Start of Pipeline[Pipeline] nodeRunning on Jenkins in /var/jenkins_home/workspace/Test Hook Job[Pipeline] {[Pipeline] stage[Pipeline] { (Build)[Pipeline] echoBuilding...Post stage [Pipeline] jiraSendBuildInfo[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineFinished: SUCCESS
Can you please help me if I am missing anything..
I've been integrating Jenkins with Jira since Jenkins was known as Hudson and would advice from only picking plugins that are under active maintenance.
The before mentioned jira-trigger-plugin, is currently looking for a new maintainer, meaning that it is likely what updates (including security ones) to be delayed.
If the official app is not working, then you could give the original app Jenkins for Jira a try.
Disclaimer, I'm the maintainer of that app.
Cheers,
Mark
Hi Mark,
Thanks for the info. Will surely give it a try :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Welcome to community :)
Please check on below documents
How the plugin works: How Jenkins for Jira works | Atlassian Support
Deployment/build integration overview: Set up your deployment integration | Atlassian Support
jiraSendBuildInfo() only prepares data. It still needs:
Atlassian Jira Cloud (or similar name).https://your-site.atlassian.net)If this connection is not done, jiraSendBuildInfo() will run but nothing can be delivered to Jira.
Thank You,
Prachi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prachi,
I have already followed all the documents and Installed all the plugins But I am not able to see any events in JIRA after the job is complete
Here is the Jenkins Plugin Configuration
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, Good day. Please refer to the steps given in the following link https://github.com/jenkinsci/jira-trigger-plugin. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I will definitely give it a try but first I want to test on the official plugin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.