You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the webhooks are based on commit time and include some amount of error (CI boot time, delay before pushing, etc), we could attempt to calibrate them.
An even better solution would be to remove the reliance on commit time. Perhaps something like:
curl https://raw.githubusercontent.com/symboxtra/travis-ci-discord-webhook/master/send.sh > send.sh
source ./send.sh --record-build-time
# do build and test
./send.sh success $WEBHOOK_URL
where the first command exports a variable like BUILD_START_TIME, and the second uses it to calculate build time. We could still use time-since-commit as a fallback/backwards compatibility.
Since the webhooks are based on commit time and include some amount of error (CI boot time, delay before pushing, etc), we could attempt to calibrate them.
An even better solution would be to remove the reliance on commit time. Perhaps something like:
where the first command exports a variable like
BUILD_START_TIME
, and the second uses it to calculate build time. We could still use time-since-commit as a fallback/backwards compatibility.Copied from jenkins-discord-webhook issue.
The text was updated successfully, but these errors were encountered: