Skip to content

Commit

Permalink
azdevops: xamarin#67.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Apr 4, 2019
1 parent f35c164 commit 9ec11dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/devops/build-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ jobs:
publishRunAttachments: true
mergeTestResults: true

- bash: "echo ##vso[task.setvariable variable=JobStatus;isOutput=true]$(Agent.JobStatus)"
- bash: |
echo ##vso[task.setvariable variable=JobStatus;isOutput=true]$AGENT_JOBSTATUS
env|sort
name: ExportedVariables
displayName: Export status
condition: always()
Expand Down Expand Up @@ -174,6 +176,9 @@ jobs:
GH_STATE=success
STATUS=Succeeded
fi
if [[ "$STATUS" == "" ]]; then
STATUS="Failed"
fi
AZURE_BUILD_URL="${SYSTEM_COLLECTIONURI}/${SYSTEM_TEAMPROJECT}/_build/results?buildId=${BUILD_BUILDID}"
echo "$EMOJII Status for '$BUILD_DEFINITIONNAME': $STATUS. [View results]($AZURE_BUILD_URL)" > commit-comment.md
./jenkins/add-commit-comment.sh "--token=$(github-pat)" "--hash=$(Build.SourceVersion)" "--file=commit-comment.md"
Expand Down

0 comments on commit 9ec11dd

Please sign in to comment.