I have a project hosted in Git stash (now rebranded as Bitbucket Server). It is built using Jenkins.
Now I made a typo while installing my Git locally.
Like @ab.example
instead of @abc.example
After every build, Jenkins sends email notifications and it picks up my incorrect email address from Git commit and tries to send it.
Even after I have changed the email address in my local Git, I still see Jenkins sending the emails to the old incorrect address.
How can I fix this?
Editable Email Notification
inPost-build Actions
. You can define the recipient list by literal strings or variables of email addresses. As to the incorrect email in the early commits, you could usegit filter-branch --env-filter
to modify. But this rewrites the commit history. It's not recommended.