-
Notifications
You must be signed in to change notification settings - Fork 493
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
Update build-test-nuget.yml for Azure Pipelines #3404
base: previews/v2
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -452,6 +452,64 @@ jobs: | |
testRunTitle: "Linux Tests ($(FRAMEWORK)) (Attempt $(System.JobAttempt))" | ||
condition: always() | ||
|
||
|
||
### Upload the unsigned packages to E4K feed ### | ||
- job: Upload_to_E4K_Feed | ||
displayName: Upload Nuget Packages to E4K Feed | ||
timeoutInMinutes: 15 | ||
|
||
condition: and(succeeded(), eq(variables['UPLOAD_TO_E4K_FEED'], 'true')) | ||
dependsOn: | ||
- Build_Packages | ||
|
||
pool: | ||
vmImage: windows-2022 | ||
|
||
variables: | ||
NUGET_PACKGE_FOLDER: $[ dependencies.Build_Packages.outputs['BUILD_PKG.NUGET_PKG_DATE'] ] | ||
|
||
steps: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Possible to simply the full steps and only add a single parameter controlled task before or after line 574? |
||
- task: DownloadPipelineArtifact@2 | ||
displayName: 'Download nuget packages from pipeline artifacts' | ||
inputs: | ||
buildType: 'current' | ||
artifactName: 'unsigned_nuget_packages' | ||
itemPattern: '**/*.*nupkg' | ||
targetPath: '$(Build.SourcesDirectory)/bin' | ||
|
||
- task: PowerShell@2 | ||
displayName: 'Downloaded nuget package files checkpoint' | ||
inputs: | ||
targetType: 'inline' | ||
script: | | ||
Write-Host "Download contents:" | ||
gci -Path $(Build.SourcesDirectory)/bin/nuget -Recurse -Force | ||
|
||
- task: PowerShell@2 | ||
displayName: 'Rename Packages for Partner Release Pipeline' | ||
inputs: | ||
targetType: 'inline' | ||
script: | | ||
Write-Host "" | ||
Rename-Item $(Build.SourcesDirectory)/bin/nuget $(Build.SourcesDirectory)/bin/pkgs_$(NUGET_PACKGE_FOLDER) | ||
Write-Host " " | ||
Write-Host "Package contents (renamed):" | ||
gci -Path $(Build.SourcesDirectory)/bin -Recurse -Force | ||
|
||
- task: NuGetAuthenticate@0 | ||
displayName: 'NuGet Authenticate' | ||
inputs: | ||
nuGetServiceConnections: 'nugetServiceConnection-tmahmood' # Update with the name of your NuGet service connection | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we have a generic authentication account? |
||
|
||
- task: NuGetCommand@2 | ||
displayName: 'NuGet Push' | ||
inputs: | ||
command: 'push' | ||
packagesToPush: '$(Build.SourcesDirectory)/bin/pkgs_$(NUGET_PACKGE_FOLDER)/*.nupkg' | ||
nuGetFeedType: 'external' | ||
publishFeed: 'https://pkgs.dev.azure.com/e4k-sdk/SdkLite/_packaging/sdklite-previews/nuget/v3/index.json' | ||
versioningScheme: 'off' | ||
|
||
### Upload unisgned packages for partner signing and release pipeline ### | ||
- job: Upload_Packages | ||
displayName: Upload Nuget Packages | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about using parameters?