Skip to content

Commit

Permalink
Update notification messages
Browse files Browse the repository at this point in the history
  • Loading branch information
agitter committed Aug 8, 2019
1 parent 05b3a4b commit 3d1f703
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ services:
- docker

install:
# Create the message with the triggering commit before install so it is
# available if the build fails
- TRIGGERING_COMMIT=${APPVEYOR_PULL_REQUEST_HEAD_COMMIT:-APPVEYOR_REPO_COMMIT}
- appveyor AddMessage "commit $TRIGGERING_COMMIT"
- source ci/install.sh

test_script:
- bash build/build.sh
- TRIGGERING_COMMIT=${APPVEYOR_PULL_REQUEST_HEAD_COMMIT:-APPVEYOR_REPO_COMMIT}
- appveyor AddMessage "commit $TRIGGERING_COMMIT"
- MANUSCRIPT_FILENAME=manuscript-$APPVEYOR_BUILD_VERSION-${TRIGGERING_COMMIT:0:7}.pdf
- cp output/manuscript.pdf $MANUSCRIPT_FILENAME
- appveyor PushArtifact $MANUSCRIPT_FILENAME
Expand All @@ -49,9 +51,9 @@ on_success:
# for available variables
notifications:
- provider: GitHubPullRequest
template: "{{#passed}}AppVeyor build {{buildVersion}} for
{{#jobs}}{{#messages}} {{message}} by @{{&commitAuthorUsername}} {{/messages}}{{/jobs}} is now complete.
template: "{{#passed}}AppVeyor [build {{buildVersion}}]({{buildUrl}})
{{#jobs}}{{#messages}} for {{message}} by @{{&commitAuthorUsername}} {{/messages}}{{/jobs}} is now complete.
The rendered manuscript from this build is temporarily available for download at
{{#jobs}}{{#artifacts}} [`{{fileName}}`]({{permalink}}){{/artifacts}}{{/jobs}}.{{/passed}}
{{#failed}}AppVeyor build {{buildVersion}} for
{{#jobs}}{{#messages}} {{message}} by @{{&commitAuthorUsername}} {{/messages}}{{/jobs}} failed.{{/failed}}"
{{#failed}}AppVeyor [build {{buildVersion}}]({{buildUrl}})
{{#jobs}}{{#messages}} for {{message}} by @{{&commitAuthorUsername}} {{/messages}}{{/jobs}} failed.{{/failed}}"

0 comments on commit 3d1f703

Please sign in to comment.