How to override Slack channels in Travis-CI notification when encrypting the token? -
the online documentation travis-ci notification on slack says:
overriding channel possible, add configuration # separating them account , token.
notifications: slack: '<account>:<token>#development'
however, if want encrypt credentials way recommended:
travis encrypt "<account>:<token>" --add notifications.slack
will work fine. when try:
travis encrypt "<account>:<token>#development" --add notifications.slack
i new encrypted token, notifications come on default channel set @ integration time. doing wrong?
note: use enterprise versions of (slack, travis, github), in case may play role.
the command isn't correct, it's missing .rooms
property @ end. should be
travis encrypt "account:token#channel" --add notifications.slack.rooms
Comments
Post a Comment