The online documentation for Travis-CI notification on Slack says:
Overriding the channel is also possible, just add it to the configuration with a # separating them from account and token.
notifications:
slack: '<account>:<token>#development'
However, if I want to encrypt the credentials the way it is recommended:
travis encrypt "<account>:<token>" --add notifications.slack
will work just fine. But when I try:
travis encrypt "<account>:<token>#development" --add notifications.slack
I get a new encrypted token, but the notifications come on the default channel set up at integration time. What am I doing wrong?
Note: we use enterprise versions of everything (Slack, Travis, GitHub), in case this may play a role.
The command isn't correct, it's missing the
.rooms
property at the end. It should be