mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-10 00:44:55 -06:00
Many Microsoft employees have contributed to the Windows Subsystem for Linux, this commit is the result of their work since 2016. The entire history of the Windows Subsystem for Linux can't be shared here, but here's an overview of WSL's history after it moved to it own repository in 2021: Number of commits on the main branch: 2930 Number of contributors: 31 Head over https://github.com/microsoft/WSL/releases for a more detailed history of the features added to WSL since 2021.
48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
parameters:
|
|
- name: isNightly
|
|
type: boolean
|
|
default: false
|
|
|
|
- name: nugetPackages
|
|
type: object
|
|
default:
|
|
- Microsoft.WSL.PluginApi
|
|
|
|
stages:
|
|
- stage: nuget
|
|
dependsOn: [build, test]
|
|
jobs:
|
|
- job: nuget
|
|
displayName: 'Publish nuget packages'
|
|
condition: and(succeeded(), or(eq(variables['Build.Reason'], 'Schedule'), eq('${{ parameters.isNightly }}', false)))
|
|
dependsOn: [] # The stage handles this dependency
|
|
|
|
pool:
|
|
type: windows
|
|
|
|
variables:
|
|
WSL_NUGET_PACKAGE_VERSION: $[ dependencies.build.outputs['version.WSL_NUGET_PACKAGE_VERSION'] ]
|
|
NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS: 60
|
|
NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS: 60
|
|
ob_outputDirectory: '$(Build.SourcesDirectory)\out'
|
|
ob_artifactBaseName: 'drop_wsl'
|
|
ob_artifactSuffix: '_nuget'
|
|
|
|
steps:
|
|
|
|
- task: DownloadPipelineArtifact@2
|
|
displayName: Download nuget artifacts
|
|
inputs:
|
|
artifact: "drop_wsl_build"
|
|
path: drop
|
|
|
|
# Note: this task might fail if there's been no commits between two nightly pipelines, which is fine.
|
|
- ${{ each package in parameters.nugetPackages }}:
|
|
- task: NuGetCommand@2
|
|
displayName: Push nuget/${{ package }}.$(WSL_NUGET_PACKAGE_VERSION).nupkg
|
|
inputs:
|
|
command: 'push'
|
|
packagesToPush: drop/nuget/${{ package }}.$(WSL_NUGET_PACKAGE_VERSION).nupkg
|
|
nuGetFeedType: 'internal'
|
|
publishVstsFeed: wsl
|
|
allowPackageConflicts: ${{ parameters.isNightly }} |