未验证 提交 714b1439 编写于 作者: E Egor Chesakov 提交者: GitHub

Use git bundles (#132)

上级 a23534ec
......@@ -5,60 +5,24 @@
### and OSX build clients don't have 7-zip installed) and simplify other details such
### as line endings.
jobs:
- job: 'checkout_windows'
displayName: 'Checkout (Windows)'
- job: checkout
displayName: Checkout
pool:
# Public Windows Build Pool
${{ if eq(variables['System.TeamProject'], 'public') }}:
vmImage: 'windows-latest'
name: Hosted MacOS
# Private Windows Build Pool
${{ if ne(variables['System.TeamProject'], 'public') }}:
name: NetCoreInternal-Pool
queue: BuildPool.Windows.10.Amd64.VS2017
name: Hosted Mac Internal
steps:
- checkout: self
clean: true
fetchDepth: 5
### Zip up downloaded repo and publish to Helix
- template: /eng/pipelines/coreclr/templates/upload-artifact-step.yml
parameters:
displayName: 'GIT repository (Windows)'
rootFolder: $(Build.SourcesDirectory)
includeRootFolder: false
archiveType: 'zip'
tarCompression: ''
archiveExtension: '.zip'
artifactName: repo_windows
- script: git bundle create $(Build.StagingDirectory)/Checkout.bundle HEAD
displayName: Create Checkout.bundle
- job: 'checkout_unix'
displayName: 'Checkout (Unix)'
pool:
# Public Linux Build Pool
${{ if eq(variables['System.TeamProject'], 'public') }}:
vmImage: 'ubuntu-latest'
# Private Linux Build Pool
${{ if ne(variables['System.TeamProject'], 'public') }}:
name: NetCoreInternal-Pool
queue: BuildPool.Ubuntu.1604.Amd64
steps:
- checkout: self
clean: true
fetchDepth: 5
### Zip up downloaded repo and publish to Helix
- template: /eng/pipelines/coreclr/templates/upload-artifact-step.yml
parameters:
displayName: 'GIT repository (Unix)'
rootFolder: $(Build.SourcesDirectory)
includeRootFolder: false
archiveType: 'tar'
tarCompression: 'gz'
archiveExtension: '.tar.gz'
artifactName: repo_unix
- publish: $(Build.StagingDirectory)/Checkout.bundle
artifact: Checkout_bundle
displayName: Upload Checkout.bundle
......@@ -31,10 +31,7 @@ jobs:
condition: ${{ parameters.condition }}
dependsOn:
- ${{ if ne(parameters.stagedBuild, true) }}:
- ${{ if eq(parameters.osGroup, 'Windows_NT') }}:
- 'checkout_windows'
- ${{ if ne(parameters.osGroup, 'Windows_NT') }}:
- 'checkout_unix'
- checkout
- ${{ if ne(parameters.dependsOn, '') }}:
- ${{ parameters.dependsOn }}
......@@ -158,17 +155,13 @@ jobs:
- checkout: none
clean: true
# Download the GIT repository
- template: /eng/pipelines/coreclr/templates/download-artifact-step.yml
parameters:
displayName: 'GIT repository'
cleanUnpackFolder: false
unpackFolder: $(Build.SourcesDirectory)
${{ if eq(parameters.osGroup, 'Windows_NT') }}:
artifactFileName: repo_windows.zip
artifactName: repo_windows
${{ if ne(parameters.osGroup, 'Windows_NT') }}:
artifactFileName: repo_unix.tar.gz
artifactName: repo_unix
- download: current
artifact: Checkout_bundle
displayName: Download Checkout.bundle
- script: |
git clone $(Pipeline.Workspace)/Checkout_bundle/Checkout.bundle .
git remote set-url origin $(Build.Repository.Uri)
displayName: Clone the repository from Checkout.bundle
- ${{ parameters.steps }}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册