Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on_success:
- - sh: >-
- postdata=$(cat <<EOF
- {
- "username": "MiraBot",
- "embeds": [{
- "title": "Successful Build: $APPVEYOR_BUILD_VERSION",
- "url": "https://ci.appveyor.com/project/$APPVEYOR_ACCOUNT_NAME/$APPVEYOR_PROJECT_SLUG/build/$APPVEYOR_BUILD_VERSION",
- "color": 8311585,
- "timestamp": "$(date "+%Y-%m-%dT%T.%3NZ")",
- "footer": {
- "icon_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Appveyor_logo.svg/256px-Appveyor_logo.svg.png",
- "text": "AppVeyor"
- }
- }]
- }
- EOF
- )
- curl -X POST "$DISCORDHOOKURL" -H "Content-Type: application/json" -s -d "$postdata";
- on_failure:
- - sh: >-
- postdata=$(cat <<EOF
- {
- "username": "MiraBot",
- "embeds": [{
- "title": "Failed Build: $APPVEYOR_BUILD_VERSION",
- "url": "https://ci.appveyor.com/project/$APPVEYOR_ACCOUNT_NAME/$APPVEYOR_PROJECT_SLUG/build/$APPVEYOR_BUILD_VERSION",
- "color": 13632027,
- "timestamp": "$(date "+%Y-%m-%dT%T.%3NZ")",
- "footer": {
- "icon_url": "https://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Appveyor_logo.svg/256px-Appveyor_logo.svg.png",
- "text": "AppVeyor"
- }
- }]
- }
- EOF
- )
- curl -X POST "$DISCORDHOOKURL" -H "Content-Type: application/json" -s -d "$postdata";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement