Jenkins stop "build back to normal" notification - jenkins

I have a question around Jenkins free style job. We're using "Email notification" part of post-build action. So whenever there is a failure, it triggers an email. However it sends another email when the failed job runs to success. I want to stop that. I don't want any email wherever the status of job changes. I know that is possible in pipeline, but is it possible in freestyle job?

It is not possible with "Email notification" from Mailer plugin.
Altough, it exist Email-Ext plugin which allows a broader set of customizations for email notifications.
For instance, adding an "Editable Email Notification" post-action:

Related

Gerrit trigger trouble with ref-update

Gerrit Trigger 2.32.0
I configuration "Trigger on" with "Ref Updated" to support push event.But I find when I reply on the pathset with comment, Ref Updated is triggered. Param GERRIT_REFNAME is refs/changes/96/996/meta.
I don't know how to filtered it to make only push event triggered by "Ref Updated" event.

How to send Jira to Slack channel "Ready for QA" notification

I need to post Jira notifications to a slack channel. The condition is any Jira ticket that moves to "Ready for QA" status should be notified in the slack channel. I setup a webhook already where JQL is set to Status Ready for QA. It didn't work.
You can use the custom event notification create an event and then create a post function in your transition before the Ready for QA status change. please check this link to see how to configure it : https://confluence.atlassian.com/jirakb/configure-a-custom-event-notification-for-a-specific-jira-workflow-transition-or-status-720831525.html

Mandrill webhooks: How to get notifications about successful delivery?

I have webhooks configured for "send", "hard_bounce" and "soft_bounce".
At 15:12 I got an event from mandrill that email message was hard
bounced.
At 15:14 I got an event from mandrill that the very same
email message was sent.
messages.info API call says that the state of this message is "bounced".
Why mandrill behaves like that? Maybe it's a bug?
If it's not a bug then how to get notifications about successful delivery?
How to contact mandrill and file a bug report? I didn't find any place I could do that.
Update (20.04.2015)
Can you say that mail got delivered, if it contains positive smtp_events and state is sent?
You actually cannot get a webhook notification for when the email is delivered through Mandrill.
The only way of checking if an email has been delivered is to poll Mandrill (with the message/info.json API). To see if the message is delivered you have to check the smtp_events and look for an event with diag starting with 250.

Sending automatic push notification for inactivity Ruby on Rails

In my app i'm using RPush Gem to implement push notifications. Right now admin can send a custom message as notification.
What I want is to send an automatic notification if the user hasn't logged in for 2 days. I can check this in my database where I'm keeping a record like last_logged. But i want to know how to check this automatically and run in background.
Hard to give better suggestions without more detail, but if you're on a platform like Heroku, you can do scheduled cron jobs using their scheduler add on. So the idea is:
1) Implement a rake task that checks whether a user hasn't logged in for 2 days, then send an email to yourself (or whomever)
2) Schedule this rake task via Heroku Scheduler add on
If you're not using Heroku, I'm sure there are equally compatible services you can try to run a cron job.

Amazon SQS Queue is not receiving messages

Our Amazon SQS Queue is not receiving messages from Amazon MWS for the AnyOfferChanged notification.
We send a test notification and this is sent to the Queue and available when we get the notification.
We have set up two AWS accounts, we are using one AWS account to register the queue destination and create the subscription to AnyOfferChanged. The other AWS account gets the test notifications from our Queue successfully.
We can see that the competitors of the merchant have changed their price for a listing, but no notifications have been sent to us.
Has anyone encountered this issue?
Sounds like you've done most of the things correctly (registering destination and creating subscription). Have you given Amazon themselves permission to write to the SQS queue?
On the SQS page in AWS Console, select the queue
In the pane that appears below, click on the Permissions tab
Click on the Edit pencil and give the Principal value "437568002678" for Amazon
Select some Actions (would depend on your use; I've used 'SendMessage' and 'GetQueueAttributes')
Save
That "Principal" value I got from this PDF:
Hope that sorts it out!

Resources