I am newbie to travis ci, my expectation for email notification each and every success and failure of the build i should receive email notification. But currently on success i am not getting email notification, only failure i am getting. Below are my settings of the travis yml for your reference.
notifications:
email:
recipients:
- xyz@abc.com
on_success: always
on_failure: always
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^developer*
What i made mistake here, now on sucess works like :change only. Please help me here
Hi there!
I’m afraid that at the moment Travis CI doesn’t support conditionals for notifications such as the following:
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^developer*
I think it’s possible that, since these conditions aren’t supported, Travis CI is not able to detect your configuration correctly and it is applying the default notification settings instead.
Do you see the same behavior (notifications on failure and on change) if you use only the following configuration without the branch conditionals?
notifications:
email:
recipients:
- xyz@abc.com
on_success: always
on_failure: always
If you have a link to a build where this happens, this would also be helpful so that we can check how it was configured internally.
Thank you!
@iriberri I will try without mentioning the branch name and get back to you with the build result. Thanks for your suggestions.
@iriberri. Below is my travis config file for your reference. Can you please guide why i m not getting each and every success build email notification?
#sudo: true
language: ruby
the following line is needed to enable the TravisCI build conditions
rvm: “2.3.1”
#cache: bundler
conditions: v0
stages:
- name: staging
- name: production
jobs:
include: