1parameters: 2 depth: 3 3 4steps: 5- checkout: none 6 7- script: git clone --progress -v --depth ${{ parameters.depth }} --branch $(SourceTag) --single-branch https://github.com/$(GitRemote)/cpython.git . 8 displayName: 'git clone ($(GitRemote)/$(SourceTag))' 9 condition: and(succeeded(), and(variables['GitRemote'], variables['SourceTag'])) 10 11- script: git clone --progress -v --depth ${{ parameters.depth }} --branch $(SourceTag) --single-branch $(Build.Repository.Uri) . 12 displayName: 'git clone (<default>/$(SourceTag))' 13 condition: and(succeeded(), and(not(variables['GitRemote']), variables['SourceTag'])) 14 15- script: git clone --progress -v --depth ${{ parameters.depth }} --branch $(Build.SourceBranchName) --single-branch https://github.com/$(GitRemote)/cpython.git . 16 displayName: 'git clone ($(GitRemote)/<default>)' 17 condition: and(succeeded(), and(variables['GitRemote'], not(variables['SourceTag']))) 18 19- script: git clone --progress -v --depth ${{ parameters.depth }} --branch $(Build.SourceBranchName) --single-branch $(Build.Repository.Uri) . 20 displayName: 'git clone' 21 condition: and(succeeded(), and(not(variables['GitRemote']), not(variables['SourceTag']))) 22