Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
235 changes: 235 additions & 0 deletions .pipelines/NuGetGallery-CI-dnceng.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
name: NuGetGallery CI $(Build.BuildId)

trigger:
branches:
include:
- main
- dev
batch: True

pr:
branches:
include:
- "*"

variables:
- name: BuildConfiguration
value: Release
- name: Codeql.Enabled
value: true
- name: NugetSecurityAnalysisWarningLevel
value: none
- name: nugetMultiFeedWarnLevel
value: none
- name: CommonPackageVersion
value: $(CommonAssemblyVersion)-$(SemverFriendlyBranchName)-$(Build.BuildId)
- name: CommonAssemblyVersion
value: 5.0.0
- name: GalleryPackageVersion
value: $(GalleryAssemblyVersion)-$(SemverFriendlyBranchName)-$(Build.BuildId)
- name: GalleryAssemblyVersion
value: 5.0.0
- name: JobsPackageVersion
value: $(JobsAssemblyVersion)-$(SemverFriendlyBranchName)-$(Build.BuildId)
- name: JobsAssemblyVersion
value: 5.0.0
- name: NuGetGalleryDirectory
value: ng
- name: NuGetGalleryPath
value: $(Agent.BuildDirectory)\$(NuGetGalleryDirectory)
- name: NuGetGalleryBranch
value: $(Build.SourceBranchName)
- name: SemverFriendlyBranchName
value: ${{ replace(replace(variables['Build.SourceBranchName'], '_', '-'), '/', '-') }}

resources:
repositories:
- repository: self
type: git
ref: refs/heads/main

pool:
name: NetCore-Public
demands: ImageOverride -equals windows.vs2026.amd64.open

stages:
- stage: common
displayName: NuGet.Server.Common.sln
dependsOn: []
jobs:
- job: build_and_test
displayName: common build and test
cancelTimeoutInMinutes: 1
steps:
- checkout: self
fetchDepth: 1
clean: true
fetchTags: false
path: $(NuGetGalleryDirectory)
- task: UseDotNet@2
displayName: Install .NET 8.0 SDK
inputs:
packageType: sdk
version: 8.0.x
- task: PowerShell@1
name: build
displayName: Build
inputs:
scriptName: $(NuGetGalleryPath)\build.ps1
arguments: -Configuration $(BuildConfiguration) -BuildNumber $(Build.BuildId) -SkipArtifacts -SkipGallery -SkipJobs -CommonAssemblyVersion $(CommonAssemblyVersion) -CommonPackageVersion $(CommonPackageVersion) -GalleryAssemblyVersion $(GalleryAssemblyVersion) -GalleryPackageVersion $(GalleryPackageVersion) -JobsAssemblyVersion $(JobsAssemblyVersion) -JobsPackageVersion $(JobsPackageVersion) -Branch $(NuGetGalleryBranch) -CommitSHA $(Build.SourceVersion)
workingFolder: $(NuGetGalleryPath)
- task: PowerShell@1
name: test
displayName: Run tests
inputs:
scriptName: $(NuGetGalleryPath)\test.ps1
arguments: -Configuration $(BuildConfiguration) -BuildNumber $(Build.BuildId) -SkipGallery -SkipJobs
workingFolder: $(NuGetGalleryPath)
- task: PublishTestResults@2
name: publish_test_results
displayName: Publish test results
condition: succeededOrFailed()
inputs:
testRunner: VSTest
testResultsFiles: $(NuGetGalleryPath)\Results.*.xml
failTaskOnFailedTests: true

- stage: gallery
displayName: NuGetGallery.sln
dependsOn: []
jobs:
- job: build_and_test
displayName: gallery build and test
cancelTimeoutInMinutes: 1
steps:
- checkout: self
fetchDepth: 1
clean: true
fetchTags: false
path: $(NuGetGalleryDirectory)
- task: UseDotNet@2
displayName: Install .NET 8.0 SDK
inputs:
packageType: sdk
version: 8.0.x
- task: PowerShell@1
name: build
displayName: Build
inputs:
scriptName: $(NuGetGalleryPath)\build.ps1
arguments: -Configuration $(BuildConfiguration) -BuildNumber $(Build.BuildId) -SkipArtifacts -SkipCommon -SkipJobs -CommonAssemblyVersion $(CommonAssemblyVersion) -CommonPackageVersion $(CommonPackageVersion) -GalleryAssemblyVersion $(GalleryAssemblyVersion) -GalleryPackageVersion $(GalleryPackageVersion) -JobsAssemblyVersion $(JobsAssemblyVersion) -JobsPackageVersion $(JobsPackageVersion) -Branch $(NuGetGalleryBranch) -CommitSHA $(Build.SourceVersion)
workingFolder: $(NuGetGalleryPath)
- task: PowerShell@1
name: test
displayName: Run tests
inputs:
scriptName: $(NuGetGalleryPath)\test.ps1
arguments: -Configuration $(BuildConfiguration) -BuildNumber $(Build.BuildId) -SkipCommon -SkipJobs
workingFolder: $(NuGetGalleryPath)
- task: PublishTestResults@2
name: publish_test_results
displayName: Publish test results
condition: succeededOrFailed()
inputs:
testRunner: VSTest
testResultsFiles: $(NuGetGalleryPath)\Results.*.xml
failTaskOnFailedTests: true

- stage: statslogparser
displayName: StatsLogPasrser
dependsOn: []
jobs:
- job: build_and_test
displayName: statslogparser build and test
cancelTimeoutInMinutes: 1
variables:
PIPX_HOME: $(Agent.ToolsDirectory)\pipx
steps:
- checkout: self
fetchDepth: 1
clean: true
fetchTags: false
path: $(NuGetGalleryDirectory)
- task: UsePythonVersion@0
inputs:
versionSpec: '3.10'
- script: |
python -m pip install --user pipx
set PATH=%USERPROFILE%\.local\bin;%PATH%
pipx install poetry
poetry install
poetry build
poetry run pytest tests/ --cov loginterpretation --cov-report html
displayName: 'Install tools and run tests'
workingDirectory: $(NuGetGalleryPath)\python\StatsLogParser
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(NuGetGalleryPath)\python\StatsLogParser\dist
artifact: StatsLogParser

- stage: jobs
displayName: NuGet.Jobs.sln
dependsOn: []
jobs:
- job: build_and_test
displayName: jobs build and test
cancelTimeoutInMinutes: 1
steps:
- checkout: self
fetchDepth: 1
clean: true
fetchTags: false
path: $(NuGetGalleryDirectory)
- task: UseDotNet@2
displayName: Install .NET 8.0 SDK
inputs:
packageType: sdk
version: 8.0.x
- task: PowerShell@1
name: build
displayName: Build
inputs:
scriptName: $(NuGetGalleryPath)\build.ps1
arguments: -Configuration $(BuildConfiguration) -BuildNumber $(Build.BuildId) -SkipArtifacts -SkipCommon -SkipGallery -CommonAssemblyVersion $(CommonAssemblyVersion) -CommonPackageVersion $(CommonPackageVersion) -GalleryAssemblyVersion $(GalleryAssemblyVersion) -GalleryPackageVersion $(GalleryPackageVersion) -JobsAssemblyVersion $(JobsAssemblyVersion) -JobsPackageVersion $(JobsPackageVersion) -Branch $(NuGetGalleryBranch) -CommitSHA $(Build.SourceVersion)
workingFolder: $(NuGetGalleryPath)
- task: PowerShell@1
name: test
displayName: Run tests
inputs:
scriptName: $(NuGetGalleryPath)\test.ps1
arguments: -Configuration $(BuildConfiguration) -BuildNumber $(Build.BuildId) -SkipCommon -SkipGallery
workingFolder: $(NuGetGalleryPath)
- task: PublishTestResults@2
name: publish_test_results
displayName: Publish test results
condition: succeededOrFailed()
inputs:
testRunner: VSTest
testResultsFiles: $(NuGetGalleryPath)\Results.*.xml
failTaskOnFailedTests: true

- stage: artifacts
displayName: Artifacts
dependsOn: []
jobs:
- job: build_artifacts
displayName: build
cancelTimeoutInMinutes: 1
steps:
- checkout: self
fetchDepth: 1
clean: true
fetchTags: false
path: $(NuGetGalleryDirectory)
- task: UseDotNet@2
displayName: Install .NET 8.0 SDK
inputs:
packageType: sdk
version: 8.0.x
- task: PowerShell@1
name: build_artifacts
displayName: Build
inputs:
scriptName: $(NuGetGalleryPath)\build.ps1
arguments: -Configuration $(BuildConfiguration) -BuildNumber $(Build.BuildId) -CommonAssemblyVersion $(CommonAssemblyVersion) -CommonPackageVersion $(CommonPackageVersion) -GalleryAssemblyVersion $(GalleryAssemblyVersion) -GalleryPackageVersion $(GalleryPackageVersion) -JobsAssemblyVersion $(JobsAssemblyVersion) -JobsPackageVersion $(JobsPackageVersion) -Branch $(NuGetGalleryBranch) -CommitSHA $(Build.SourceVersion)
workingFolder: $(NuGetGalleryPath)
62 changes: 56 additions & 6 deletions src/Bootstrap/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading