From: Matt Mitchell Date: Wed, 16 Aug 2023 22:38:38 +0000 (-0700) Subject: Do not set fetch depth on source-build (#90703) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~245 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68213d01c2d49361c1a3aaba7cc935dd906b9fd5;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Do not set fetch depth on source-build (#90703) --- diff --git a/eng/pipelines/common/global-build-job.yml b/eng/pipelines/common/global-build-job.yml index 7e24fd3d045..b870ba34757 100644 --- a/eng/pipelines/common/global-build-job.yml +++ b/eng/pipelines/common/global-build-job.yml @@ -147,7 +147,10 @@ jobs: steps: - checkout: self clean: true - fetchDepth: $(checkoutFetchDepth) + # If running in source build mode, a git stash will be used for the inner clone. Avoid setting a fetch depth, + # as a stash of a shallow cloned repo is not currently supported. + ${{ if ne(parameters.isSourceBuild, true) }}: + fetchDepth: $(checkoutFetchDepth) - ${{ if and(eq(parameters.isOfficialBuild, true), notin(parameters.osGroup, 'osx', 'maccatalyst', 'ios', 'iossimulator', 'tvos', 'tvossimulator')) }}: - template: /eng/pipelines/common/restore-internal-tools.yml