I have set up my Jira plugin within Jenkins with working credentials.
When I run the following script:
jiraComment body: 'Comment test', issueKey: 'CAT-98'
The build is successful but the Jira ticket does not get a new comment
Edit: There was some problem with the credentials. Also in the Jenkins build, the right URL needed to be selected
This is not a solution, but I would start by checking Jenkins logs (http://jenkins-srv:8080/log/all) to see if there's more info when the Jira plugin runs.
Or, even create a new Log Recorder to narrow the logs down to only Jira plugin related logs.
Related
I'm configuring Jira trigger plugin (https://github.com/jenkinsci/jira-trigger-plugin) in Jenkins:
JIRA Trigger Configuration
We use Jira DC version and already set the webhook up as described in the documentation shared by #ceilfors. The Jenkins job is very simple:
Jenkins Build Triggers configuration
Also configured a Logger to triage any isue:
Configure log recorder
So when I add a comment on a task under project SNDBX I can see Jira is firing the webhook created:
Jira firing the webhook
However in Jenkins nothing happens, I checked "All Jenkins Logs" and I get:
Jenkins logs
And the logger for jira webhook is showing:
Jira Webhook logger
So the we webhook is "reaching" Jenkins somehow.
BTW, I have Jenkins over Java 8 installed:
Jenkins configuration xml file
Already fixed. It was an issue on my Jira server not trusting (SSL cert) Jenkins srvr.
I'm trying to use JIRA Trigger Jenkins plugin. I've read maybe all similar issues but can't understand why it doesn't work.
I want to build when an issue status changed. I troubleshooted but it didn't help me. My web hook works I checked it as it shows in documentation, the plugin for Jenkins is installed, firewall checked (I have whitelisted 3 Jira cloud IPs for Jenkins instance on AWS), ssl checks on Jenkins passes. Also I configured logs on Jenkins from Jira, but can't get anything.
In trigger configuration I inserted my Jira user's email (my-email#gmail.com) as user and password. The user has administrator privileges. What else can be wrong? Please any idea.
I am trying to connect JIRA via Jenkins and updating the JIRA Issue status once my Jenkins Job is triggered and successfully executed or failed . I am looking forward to use Jenkins POST Build Actions. Also before that I am also facing an validating credential issue .
I have tried using JIRA Plugin , but I dont see and JIRA Issue Updater field in my Jenkins Job created .
I expect
A. To connect and Validate JIRA Plugin
B. Update my ticket status in JIRA post JOB execution
If you are using a Freestyle Job there is a post action called JIRA: Update relevant Issue
If you are using Jenkinsfiles you should look at the documentation here.
I am trying to use Zephyr For Jira Test Management Plugin in Jenkins to create test cases automaticly and update their status. What works is that Jenkins creates test case and it is fine, but issue is that it hangs and not updates Jira's issue (pass/fail). Does anyone know is it a bug or am I doing something wrong?
Connection is working and validated:
Connection image
Plugin gets information at post build actions: Post build config
Jenkins console output says that build is successful, and then hangs: Success message and hanging
Error message from cmd that I don't understand: Error message
I got it working. At the post build actions (second picture), publish test results to Zephyr for Jira - changed from cycle Ad hoc, to New Cycle. And it worked!
I want to integrate Jenkins with jira so that, as soon as a build fails an issue is created in jira. I have already tried jira create issue in jenkins but its not creating any issue
Look at this question: Execute Shell Script after post build in Jenkins
The accepted answer by #Daniel Magnussen refers to http://wiki.hudson-ci.org/display/HUDSON/Post+build+task This is what you need as well
When the build fails, just send a curl request to jira's rest api to create a new issue. Here is some info on how to create the issue with curl:
https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-create-issue