You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.1 KiB
22 lines
1.1 KiB
parameters:
|
|
depth: 3
|
|
|
|
steps:
|
|
- checkout: none
|
|
|
|
- script: git clone --progress -v --depth ${{ parameters.depth }} --branch $(SourceTag) --single-branch https://github.com/$(GitRemote)/cpython.git .
|
|
displayName: 'git clone ($(GitRemote)/$(SourceTag))'
|
|
condition: and(succeeded(), and(variables['GitRemote'], variables['SourceTag']))
|
|
|
|
- script: git clone --progress -v --depth ${{ parameters.depth }} --branch $(SourceTag) --single-branch $(Build.Repository.Uri) .
|
|
displayName: 'git clone (<default>/$(SourceTag))'
|
|
condition: and(succeeded(), and(not(variables['GitRemote']), variables['SourceTag']))
|
|
|
|
- script: git clone --progress -v --depth ${{ parameters.depth }} --branch $(Build.SourceBranchName) --single-branch https://github.com/$(GitRemote)/cpython.git .
|
|
displayName: 'git clone ($(GitRemote)/<default>)'
|
|
condition: and(succeeded(), and(variables['GitRemote'], not(variables['SourceTag'])))
|
|
|
|
- script: git clone --progress -v --depth ${{ parameters.depth }} --branch $(Build.SourceBranchName) --single-branch $(Build.Repository.Uri) .
|
|
displayName: 'git clone'
|
|
condition: and(succeeded(), and(not(variables['GitRemote']), not(variables['SourceTag'])))
|