-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Update the universal build with framework dependent package for dotnet sdk #8773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2a09d9a
Improve packaging script by adding a DestinationPath parameter
adityapatwardhan b64f341
Add yml for publishing dotnetsdk-fxdependent package
adityapatwardhan 66a5c8c
Change blob name to version-internal
adityapatwardhan 2fdd79e
Fix yml error
adityapatwardhan 07f7803
Move upload to Azure to a separate task
adityapatwardhan 7abaecf
Fix typo
adityapatwardhan 148711e
Add tasks to set ReleaseTagVar and Azure container name
adityapatwardhan 8551a14
Fix release location and download task
adityapatwardhan fc452d0
Address Travis's feedback
adityapatwardhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
tools/releaseBuild/azureDevOps/templates/dotnetsdk-fxdependent.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| parameters: | ||
| parentJobs: [] | ||
| poolName: Hosted Ubuntu 1604 | ||
| buildName: Linux-x64 | ||
|
|
||
| jobs: | ||
| - job: dotnetfxd_${{ parameters.buildName }} | ||
| displayName: Create fxdependent package dotnet sdk - ${{ parameters.buildName }} | ||
| dependsOn: | ||
| ${{ parameters.parentJobs }} | ||
| condition: succeeded() | ||
| pool: ${{ parameters.poolName }} | ||
| steps: | ||
|
|
||
| - powershell: | | ||
| tools/releaseBuild/setReleaseTag.ps1 -ReleaseTag $(ReleaseTagVar) -Variable "ReleaseTagVar" | ||
| displayName: 'Run setReleaseTag.ps1' | ||
|
|
||
| - task: DownloadBuildArtifacts@0 | ||
| displayName: 'Download Artifacts' | ||
| inputs: | ||
| downloadType: specific | ||
| itemPattern: | | ||
| **/*.tar.gz | ||
| **/*.zip | ||
| downloadPath: '$(System.ArtifactsDirectory)/finished' | ||
|
|
||
| - powershell: | | ||
| Import-Module $(Build.SourcesDirectory)/build.psm1 -Force | ||
| Import-Module $(Build.SourcesDirectory)/tools/packaging -Force | ||
| New-DotnetSdkContainerFxdPackage -FxdPackagePath "$(System.ArtifactsDirectory)/finished" -ReleaseTag $(ReleaseTagVar) -DestinationPath "$(System.ArtifactsDirectory)/finished/release" | ||
| displayName: 'Create fxdependent package for dotnet sdk docker image' | ||
|
|
||
| - powershell: | | ||
| $azureVersion = '$(ReleaseTagVar)'.ToLowerInvariant() -replace '\.', '-' | ||
| $vstsCommandString = "vso[task.setvariable variable=AzureVersion]$azureVersion-internal" | ||
| Write-Host "sending " + $vstsCommandString | ||
| Write-Host "##$vstsCommandString" | ||
| displayName: 'Set Version for Blob Storage' | ||
|
|
||
| - job: | ||
| displayName: Upload fxdependent package dotnet sdk - ${{ parameters.buildName }} | ||
| dependsOn: dotnetfxd_${{ parameters.buildName }} | ||
| condition: succeeded() | ||
| pool: Package ES CodeHub Lab E | ||
| steps: | ||
|
|
||
| - powershell: | | ||
| tools/releaseBuild/setReleaseTag.ps1 -ReleaseTag $(ReleaseTagVar) -Variable "ReleaseTagVar" | ||
| displayName: 'Run setReleaseTag.ps1' | ||
|
|
||
| - powershell: | | ||
| $azureVersion = '$(ReleaseTagVar)'.ToLowerInvariant() -replace '\.', '-' | ||
| $vstsCommandString = "vso[task.setvariable variable=AzureVersion]$azureVersion-internal" | ||
| Write-Host "sending " + $vstsCommandString | ||
| Write-Host "##$vstsCommandString" | ||
| displayName: 'Set Version for Blob Storage' | ||
|
|
||
| - task: DownloadBuildArtifacts@0 | ||
| displayName: 'Download FxDependent dotnet sdx artifacts' | ||
| inputs: | ||
| downloadType: specific | ||
| itemPattern: | | ||
| **/*fxd-dotnetsdk.zip | ||
| **/*fxd-dotnetsdk.tar.gz | ||
| downloadPath: '$(System.ArtifactsDirectory)' | ||
| condition: succeeded() | ||
|
|
||
| - powershell: | | ||
| Get-ChildItem '$(System.ArtifactsDirectory)\release' | ||
| displayName: Capture list of downloaded artifacts | ||
|
|
||
| - task: AzureFileCopy@1 | ||
| displayName: 'Upload to azure' | ||
| inputs: | ||
| SourcePath: '$(System.ArtifactsDirectory)\release' | ||
| azureSubscription: '$(AzureFileCopySubscription)' | ||
| Destination: AzureBlob | ||
| storage: '$(StorageAccount)' | ||
| ContainerName: '$(AzureVersion)' |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.