Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifications sent twice in the discord channel #18

Closed
axelvaindal opened this issue Feb 6, 2019 · 6 comments
Closed

Notifications sent twice in the discord channel #18

axelvaindal opened this issue Feb 6, 2019 · 6 comments

Comments

@axelvaindal
Copy link

Hi guys, great work for this !

I've been using your script to send webhook notifications to my discord server when travis complete the build, but weirdly enough, it seems the notifications are sent twice.
Moreoever, the build numbers do not match the one I got on my travis dashboard.

Here is a screenshot of the notifications received :

image

And here is the screenshot of the travis related dashboard :

image

Are you aware of this and if yes, do you know how to fix this ?

@bastion
Copy link

bastion bot commented Feb 6, 2019

Thank you for opening this issue. A maintainer will get by as soon as possible to address this issue.
Since this is your first issue in this repository, please make sure to follow the issue template and provide as much detail as possible.

@iamtraction
Copy link
Member

Click on the embed title and it'll redirect you to the build for which the notification was sent. And see if they redirect correctly or not.

@axelvaindal
Copy link
Author

Weirdly enough, it seems one notification is from travis-ci.org and another is from travis-ci.com, do you know anything about that ?

@iamtraction
Copy link
Member

You've probably set it to run in two different places.

@axelvaindal
Copy link
Author

I'm only using what you proposed in your README.md :

after_success:
  - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
  - chmod +x send.sh
  - ./send.sh success $WEBHOOK_URL
after_failure:
  - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
  - chmod +x send.sh
  - ./send.sh failure $WEBHOOK_URL

However, it does seem like travis-ci.org was the old DNS used by the travis team to build public repository, and it will be removed someday to only use travis-ci.com.
Due to this, any push done to a public repository with travis configuration on seems to be pushed both on travis-ci.com and travis-ci.org , thus the script being executed twice.
Do you have any public repository running travis on which you can confirm this behavior ?

@iamtraction
Copy link
Member

No, that's not what it is. I've my builds running on .org and that's not causing this issue. You've probably connected your repository both in .org and .com. You need to disconnect/remove it from one of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants