Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

work around Azure/GitHub disagreement #7790

Merged
merged 1 commit into from
Oct 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -893,3 +893,72 @@ jobs:
else
echo "User $(user_id) did not opt in for notifications."
fi

# temporary (?) workaround for Azure not reporting global build status to GitHub anymore.
- job: finished
pool:
name: 'linux-pool'
demands: assignment -equals default
dependsOn:
- git_sha
- check_standard_change_label
- check_changelog_entry
- Linux
- macOS
- Windows
- compatibility_ts_libs
- compatibility_linux
- compatibility_macos
- compatibility_windows
- check_for_release
- check_perf_test
- release
- compat_versions_pr
- compat_versions_pr_trigger_daily
- write_ledger_dump
- collect_build_data
- notify_release_pr
- notify_user
condition: always()
variables:
git_sha: $[ dependencies.git_sha.result ]
check_standard_change_label: $[ dependencies.check_standard_change_label.result ]
check_changelog_entry: $[ dependencies.check_changelog_entry.result ]
Linux: $[ dependencies.Linux.result ]
macOS: $[ dependencies.macOS.result ]
Windows: $[ dependencies.Windows.result ]
compatibility_ts_libs: $[ dependencies.compatibility_ts_libs.result ]
compatibility_linux: $[ dependencies.compatibility_linux.result ]
compatibility_macos: $[ dependencies.compatibility_macos.result ]
compatibility_windows: $[ dependencies.compatibility_windows.result ]
check_for_release: $[ dependencies.check_for_release.result ]
check_perf_test: $[ dependencies.check_perf_test.result ]
release: $[ dependencies.release.result ]
compat_versions_pr: $[ dependencies.compat_versions_pr.result ]
compat_versions_pr_trigger_daily: $[ dependencies.compat_versions_pr_trigger_daily.result ]
write_ledger_dump: $[ dependencies.write_ledger_dump.result ]
collect_build_data: $[ dependencies.collect_build_data.result ]
notify_release_pr: $[ dependencies.notify_release_pr.result ]
notify_user: $[ dependencies.notify_user.result ]
steps:
- bash: |
set -euo pipefail
if [ "$(git_sha)" != "Succeeded" ] && [ "$(git_sha)" != "Skipped" ]; then exit 1; fi
if [ "$(check_standard_change_label)" != "Succeeded" ] && [ "$(check_standard_change_label)" != "Skipped" ]; then exit 1; fi
if [ "$(check_changelog_entry)" != "Succeeded" ] && [ "$(check_changelog_entry)" != "Skipped" ]; then exit 1; fi
if [ "$(Linux)" != "Succeeded" ] && [ "$(Linux)" != "Skipped" ]; then exit 1; fi
if [ "$(macOS)" != "Succeeded" ] && [ "$(macOS)" != "Skipped" ]; then exit 1; fi
if [ "$(Windows)" != "Succeeded" ] && [ "$(Windows)" != "Skipped" ]; then exit 1; fi
if [ "$(compatibility_ts_libs)" != "Succeeded" ] && [ "$(compatibility_ts_libs)" != "Skipped" ]; then exit 1; fi
if [ "$(compatibility_linux)" != "Succeeded" ] && [ "$(compatibility_linux)" != "Skipped" ]; then exit 1; fi
if [ "$(compatibility_macos)" != "Succeeded" ] && [ "$(compatibility_macos)" != "Skipped" ]; then exit 1; fi
if [ "$(compatibility_windows)" != "Succeeded" ] && [ "$(compatibility_windows)" != "Skipped" ]; then exit 1; fi
if [ "$(check_for_release)" != "Succeeded" ] && [ "$(check_for_release)" != "Skipped" ]; then exit 1; fi
if [ "$(check_perf_test)" != "Succeeded" ] && [ "$(check_perf_test)" != "Skipped" ]; then exit 1; fi
if [ "$(release)" != "Succeeded" ] && [ "$(release)" != "Skipped" ]; then exit 1; fi
if [ "$(compat_versions_pr)" != "Succeeded" ] && [ "$(compat_versions_pr)" != "Skipped" ]; then exit 1; fi
if [ "$(compat_versions_pr_trigger_daily)" != "Succeeded" ] && [ "$(compat_versions_pr_trigger_daily)" != "Skipped" ]; then exit 1; fi
if [ "$(write_ledger_dump)" != "Succeeded" ] && [ "$(write_ledger_dump)" != "Skipped" ]; then exit 1; fi
if [ "$(collect_build_data)" != "Succeeded" ] && [ "$(collect_build_data)" != "Skipped" ]; then exit 1; fi
if [ "$(notify_release_pr)" != "Succeeded" ] && [ "$(notify_release_pr)" != "Skipped" ]; then exit 1; fi
if [ "$(notify_user)" != "Succeeded" ] && [ "$(notify_user)" != "Skipped" ]; then exit 1; fi