Skip to content

Commit

Permalink
azdevops: xamarin#57
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Apr 3, 2019
1 parent e860513 commit c1d9008
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tools/devops/build-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,25 @@ jobs:
testRunTitle: Sample tests (build)
publishRunAttachments: true
mergeTestResults: true

- job: AddGitHubComment
dependsOn: macOS
condition: always()
pool:
vmImage: 'macOS-10.13'

steps:
- bash: |
set -x
set -e
EMOJI="❌"
if [[ "$AGENT_JOBSTATUS" == "Succeeded" ]]; then
EMOJII="✅"
elif [[ "$AGENT_JOBSTATUS" == "SucceededWithIssues" ]]; then
EMOJII="⚠️"
fi
echo "$EMOJII Status for '$BUILD_DEFINITIONNAME': $AGENT_JOBSTATUS. [View results](${SYSTEM_COLLECTIONURI}/${SYSTEM_TEAMPROJECT}/_build/results?buildId=${BUILD_BUILDID})" > commit-comment.md
./jenkins/add-commit-comment.sh "--token=$(github-pat)" "--hash=$(Build.SourceVersion)" "--file=commit-comment.md"
rm -f commit-comment.md
displayName: Add GitHub comment with test results
condition: always()

0 comments on commit c1d9008

Please sign in to comment.