How to have a report being sent automatically to the Jenkins build initiator (via mentioned plug-in) ?
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 tried to build CI on my system. The Jenkins could listen gerrit push event and checkout the code. But jenkins Gerrit-Trigger not reporting +1 verified after successful job run.
There is an error message in Console Output: ERROR Gerrit response: HTTP method POST is not supported by this URLFinished: SUCCESS
Versions:
Windows 10
Jenkins 2.263.1
Gerrit 2.10.2
Gerrit Trigger Plugin 2.32.0
Git Plugin 4.5.0
There are some warning, does it matter?
My item Gerrit Reporting Values:
EDIT
The Error message doesn't show again after modifying --message Message to double quotes (Manage Jenkins > Gerrit Trigger > Gerrit Verified Commands)
EDIT
Some things you should consider:
Your Gerrit version is (really) too old, it would be very good if you update to a newer version.
Try to uncheck the "Use REST API" option at Manage Jenkins > Gerrit Trigger > Advanced > REST API. Maybe the Gerrit 2.10.2 REST API isn't compatible with the Gerrit-Trigger last version.
Do you have the "Code-Review" and the "Verified" labels defined on Gerrit? Does the Gerrit user used by Jenkins have permission to perform the review (-1/+1)?
We recently rebuilt our Jenkins server and we are using Jenkins 2.3.5/JDK8/ubuntu 14.04/bitbucket cloud/hipchat cloud.
After we got the newly built Jenkins server running, everything worked except for the build result notification.
We used to get the bitbucket account that we used with Jenkins to comment on the build result, so we can receive it in the hipchat room, even without using hipchat notification plugin. Now, we have tried the emailext plugin, Bitbucket Build Status Notifier Plugin, but none of them worked. It seems that the plugin is all out of date in terms of configurations.
For emailext, it complains "An attempt to send an e-mail to empty list of recipients, ignored." But we put a number of email in the "Default Recipients". And all the SMTP settings are correct since we can receive testing message.
For Bitbucket Build Status Notifier Plugin, I followed here, but I couldn't find the "Bitbucket notify build status" in the job configure.
Any suggestions would be appreciated.
Use Extended Email notification plugin, set SMTP server in Jenkins global configuration
Can we send mail only the failure reason from jenkins, when jenkins build is getting fail. I am using Email-ext plug-in , and using that plug-in i can able send only HTML report through Jenkins .
You are using the right plugin Email-ext plug-in you need to configure the global level settings for this plugin in Jenkins(setting up SMTP). Once you are done with is setup,Go to the job level settings in Jenkins and select the event as (send only on failure)
follow : https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin
I need to write a script to monitor job failures in a Jenkins farm and send an email with a report of the top 5 unstable jobs in the farm.
How can do it?
Is there any plugin available for this requirement ?
Jenkins mailer plugin can send mails if a build fails. Did you try that ?
link