Skip to content

Commit e39e332

Browse files
pks-tgitster
authored andcommitted
ci: remove stale code for Azure Pipelines
Support for Azure Pipelines has been retired in 6081d38 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6bc06e8 commit e39e332

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

ci/lib.sh

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -206,26 +206,7 @@ export TERM=${TERM:-dumb}
206206
# Clear MAKEFLAGS that may come from the outside world.
207207
export MAKEFLAGS=
208208

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"
229210
then
230211
CI_TYPE=github-actions
231212
CI_BRANCH="$GITHUB_REF"

ci/print-test-failures.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ do
3939
test_name="${test_name##*/}"
4040
trash_dir="trash directory.$test_name"
4141
case "$CI_TYPE" in
42-
azure-pipelines)
43-
mkdir -p failed-test-artifacts
44-
mv "$trash_dir" failed-test-artifacts
45-
continue
46-
;;
4742
github-actions)
4843
mkdir -p failed-test-artifacts
4944
echo "FAILED_TEST_ARTIFACTS=${TEST_OUTPUT_DIRECTORY:t}/failed-test-artifacts" >>$GITHUB_ENV

0 commit comments

Comments
 (0)