ci: remove stale code for Azure Pipelines
Support for Azure Pipelines has been retired in 6081d3898f (ci: retire the Azure Pipelines definition, 2020-04-11) in favor of GitHub Actions. Our CI library still has some infrastructure left for Azure though that is now unused. Remove it. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Patrick Steinhardt committed
Jan 10, 2025 at 12:32 UTC
e39e332e5043d7e8f48fbfc91c3bd6d45a52cb7b
2 files changed
+1
-25
ci/lib.sh
+1
-20
@@ -206,26 +206,7 @@ export TERM=${TERM:-dumb}
206
# Clear MAKEFLAGS that may come from the outside world.
207
export MAKEFLAGS=
208
209
-if test -n "$SYSTEM_COLLECTIONURI" || test -n "$SYSTEM_TASKDEFINITIONSURI"
210
-then
211
- CI_TYPE=azure-pipelines
212
- # We are running in Azure Pipelines
213
- CI_BRANCH="$BUILD_SOURCEBRANCH"
214
- CI_COMMIT="$BUILD_SOURCEVERSION"
215
- CI_JOB_ID="$BUILD_BUILDID"
216
- CI_JOB_NUMBER="$BUILD_BUILDNUMBER"
217
- CI_OS_NAME="$(echo "$AGENT_OS" | tr A-Z a-z)"
218
- test darwin != "$CI_OS_NAME" || CI_OS_NAME=osx
219
- CI_REPO_SLUG="$(expr "$BUILD_REPOSITORY_URI" : '.*/\([^/]*/[^/]*\)$')"
220
- CC="${CC:-gcc}"
221
-
222
- # use a subdirectory of the cache dir (because the file share is shared
223
- # among *all* phases)
224
- cache_dir="$HOME/test-cache/$SYSTEM_PHASENAME"
225
-
226
- GIT_TEST_OPTS="--write-junit-xml"
227
- JOBS=10
228
-elif test true = "$GITHUB_ACTIONS"
209
+if test true = "$GITHUB_ACTIONS"
210
then
211
CI_TYPE=github-actions
212
CI_BRANCH="$GITHUB_REF"
ci/print-test-failures.sh
-5
@@ -39,11 +39,6 @@ do
39
test_name="${test_name##*/}"
40
trash_dir="trash directory.$test_name"
41
case "$CI_TYPE" in
42
- azure-pipelines)
43
- mkdir -p failed-test-artifacts
44
- mv "$trash_dir" failed-test-artifacts
45
- continue
46
- ;;
42
github-actions)
43
mkdir -p failed-test-artifacts
44
echo "FAILED_TEST_ARTIFACTS=${TEST_OUTPUT_DIRECTORY:t}/failed-test-artifacts" >>$GITHUB_ENV