Permalink
Browse files

Restore deleted pipeline files

  • Loading branch information...
chsienki committed Jan 4, 2019
1 parent f86ce1c commit 799a763d16d00e7f290e9789a38716e3e988bedd
Showing with 361 additions and 0 deletions.
  1. +173 −0 azure-pipelines-official.yml
  2. +188 −0 azure-pipelines.yml
@@ -0,0 +1,173 @@
resources:
- repo: self
clean: true

jobs:
- job:
pool:
name: VSEng-MicroBuildVS2017
demands:
- msbuild
- visualstudio
- DotNetFramework
timeoutInMinutes: 360

variables:
BuildPlatform: 'Any CPU'
InsertTargetBranchFullName: 'lab/d16.0stg'
InsertTargetBranchShortName: 'd16.0stg'
steps:
- task: NuGetCommand@2
inputs:
command: custom
arguments: 'locals all -clear'

- task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@1
inputs:
signType: real
condition: and(succeeded(), in(variables['PB_SignType'], 'test', 'real'))

- task: ms-vseng.MicroBuildTasks.965C8DC6-1483-45C9-B384-5AC75DA1F1A4.MicroBuildOptProfPlugin@1
inputs:
skipRunOptimize: true
displayName: 'Install OptProf Plugin'

- task: ms-vseng.MicroBuildTasks.32f78468-e895-4f47-962c-58a699361df8.MicroBuildSwixPlugin@1
inputs:
feedSource: 'https://devdiv-test.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json'

- task: NuGetRestore@1
inputs:
solution: 'eng\internal\Toolset.csproj'
feed: '8f470c7e-ac49-4afe-a6ee-cf784e438b93'

- script: eng\cibuild.cmd
-configuration $(BuildConfiguration) -official -testDesktop -procdump
/p:DotNetSignType=$(PB_SignType)
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
displayName: Build
condition: succeeded()

- task: PowerShell@2
displayName: Publish Assets
inputs:
arguments: '-configuration $(BuildConfiguration) -branchName "$(Build.SourceBranch)" -mygetApiKey $(Roslyn.MyGetApiKey) -nugetApiKey $(Roslyn.NuGetApiKey) -gitHubUserName $(Roslyn.GitHubUserName) -gitHubToken $(Roslyn.GitHubToken) -gitHubEmail $(Roslyn.GitHubEmail)'
filePath: 'eng\publish-assets.ps1'
condition: succeeded()

### BEGIN OPTPROF TASKS ###

# Publish optprof configuration files
- task: ms-vscs-artifact.build-tasks.artifactDropTask-1.artifactDropTask@0
inputs:
dropServiceURI: 'https://devdiv.artifacts.visualstudio.com'
buildNumber: 'ProfilingInputs/DevDiv/$(Build.Repository.Name)/$(Build.SourceBranchName)/$(Build.BuildId)'
sourcePath: '$(Build.SourcesDirectory)\artifacts\OptProf\$(BuildConfiguration)\Data'
toLowerCase: false
usePat: false
displayName: 'OPTPROF - Publish to Artifact Services - ProfilingInputs'
condition: succeededOrFailed()

# Created a exe that will install visual studio with this version
- task: PowerShell@2
inputs:
filePath: eng\setmanifestpaths.ps1
failOnStderr: true
displayName: 'OPTPROF - Set VSTS variables for vsman files'
condition: succeededOrFailed()

- task: ms-vseng.MicroBuildTasks.0e9d0d4d-71ec-4e4e-ae40-db9896f1ae74.MicroBuildBuildVSBootstrapper@2
inputs:
vsMajorVersion: 16
channelName: int.$(InsertTargetBranchShortName)
manifests: $(SetupManifests)
outputFolder: '$(Build.SourcesDirectory)\artifacts\VSSetup\$(BuildConfiguration)\Insertion'
displayName: 'OPTPROF - Build VS bootstrapper'
condition: succeededOrFailed()

# Publish run settings
- task: PowerShell@2
inputs:
filePath: eng\createrunsettings.ps1
arguments: -configuration $(BuildConfiguration)
failOnStderr: true
displayName: 'OPTPROF - generate runsettings file'
condition: succeededOrFailed()

# Publish bootstrapper info
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.StagingDirectory)\MicroBuild\Output
ArtifactName: MicroBuildOutputs
ArtifactType: Container
displayName: 'OPTPROF - Publish Artifact: MicroBuildOutputs'
condition: succeededOrFailed()

# Publish scripts to get the branch of VS that this inserts into
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\OptProf\$(BuildConfiguration)\BranchInfo'
ArtifactName: BranchInfo
ArtifactType: Container
displayName: 'OPTPROF - Publish Artifact: BranchInfo'
condition: succeededOrFailed()

### END OPTPROF TASKS ###

- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\$(BuildConfiguration)'
ArtifactName: 'Build Diagnostic Files'
publishLocation: Container
continueOnError: true
condition: succeededOrFailed()

- task: PublishTestResults@1
displayName: Publish Test Results
inputs:
testRunner: XUnit
testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\$(BuildConfiguration)\*.xml'
mergeTestResults: true
testRunTitle: 'Unit Tests'
condition: succeededOrFailed()

# Publishes setup VSIXes to a drop with id defined by MicroBuildSwixPlugin.
# Note: The insertion tool looks for the display name of this task in the logs.
- task: ms-vseng.MicroBuildTasks.4305a8de-ba66-4d8b-b2d1-0dc4ecbbf5e8.MicroBuildUploadVstsDropFolder@1
displayName: Upload VSTS Drop
inputs:
DropFolder: 'artifacts\VSSetup\$(BuildConfiguration)\Insertion'
condition: succeeded()

# Publish insertion packages to CoreXT store.
- task: NuGetCommand@2
displayName: Publish CoreXT Packages
inputs:
command: push
feedsToUse: config
packagesToPush: '$(Build.SourcesDirectory)\artifacts\VSSetup\$(BuildConfiguration)\DevDivPackages\**\*.nupkg'
publishVstsFeed: '97a41293-2972-4f48-8c0e-05493ae82010'
allowPackageConflicts: true
condition: succeeded()

# Publish an artifact that the RoslynInsertionTool is able to find by its name.
- task: PublishBuildArtifacts@1
displayName: Publish Artifact VSSetup
inputs:
PathtoPublish: 'artifacts\VSSetup\$(BuildConfiguration)'
ArtifactName: 'VSSetup'
condition: succeeded()

# Archive NuGet packages to DevOps.
- task: PublishBuildArtifacts@1
displayName: Publish Artifact Packages
inputs:
PathtoPublish: 'artifacts\packages\$(BuildConfiguration)'
ArtifactName: 'Packages'
condition: succeeded()

- task: ms-vseng.MicroBuildTasks.521a94ea-9e68-468a-8167-6dcf361ea776.MicroBuildCleanup@1
displayName: Perform Cleanup Tasks
condition: succeededOrFailed()
@@ -0,0 +1,188 @@
# Branches that trigger a build on commit
trigger:
- master
- master-vs-deps

# Branches that trigger builds on PR
pr:
- master
- master-vs-deps
- features/NullableReferenceTypes
- features/recursive-patterns
- features/enhanced-using
- features/nullabledogfood
- features/unmanaged-constructed-types
- features/editorconfig-in-compiler
- features/NegatedConditionStatements

jobs:
- job: Windows_Desktop_Unit_Tests
pool: dotnet-external-temp
strategy:
maxParallel: 4
matrix:
debug_32:
_configuration: Debug
_testKind: Test32
debug_64:
_configuration: Debug
_testKind: Test64
release_32:
_configuration: Release
_testKind: Test32
release_64:
_configuration: Release
_testKind: Test64
timeoutInMinutes: 90

steps:
- script: eng/cibuild.cmd -configuration $(_configuration) -prepareMachine -testDesktop -$(_testKind) -procdump
displayName: Build and Test

- task: PublishTestResults@1
inputs:
testRunner: XUnit
testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\$(_configuration)\*.xml'
mergeTestResults: true
testRunTitle: 'Windows Desktop $(_configuration) $(_testKind)'
condition: always()

- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
ArtifactName: 'Windows Desktop $(_configuration) $(_testKind)'
publishLocation: Container
continueOnError: true
condition: not(succeeded())

- job: Windows_Desktop_Spanish_Unit_Tests
pool: dnceng-windows-spanish-external-temp
timeoutInMinutes: 90

steps:
- script: eng/cibuild.cmd -configuration Debug -prepareMachine -testDesktop
displayName: Build and Test

- task: PublishTestResults@1
inputs:
testRunner: XUnit
testResultsFiles: '**/xUnitResults/*.xml'
mergeTestResults: true
testRunTitle: 'Windows Desktop Spanish'
condition: succeededOrFailed()

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
ArtifactName: 'Windows Desktop Spanish'
publishLocation: Container
continueOnError: true
condition: failed()

- job: Windows_CoreClr_Unit_Tests
pool: dotnet-external-temp
strategy:
maxParallel: 2
matrix:
debug:
_configuration: Debug
release:
_configuration: Release
timeoutInMinutes: 90

steps:
- script: eng/cibuild.cmd -configuration $(_configuration) -prepareMachine -msbuildEngine:dotnet -testCoreClr
displayName: Build and Test

- task: PublishTestResults@1
inputs:
testRunner: XUnit
testResultsFiles: '$(Build.SourcesDirectory)\artifacts\TestResults\$(_configuration)\*.xml'
mergeTestResults: true
testRunTitle: 'Windows CoreClr $(_configuration)'
condition: always()

- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\$(_configuration)'
ArtifactName: 'Windows CoreClr $(_configuration)'
publishLocation: Container
continueOnError: true
condition: not(succeeded())

- job: Windows_Determinism_Test
pool: dotnet-external-temp
timeoutInMinutes: 90
steps:
- script: eng/test-determinism.cmd -configuration Debug
displayName: Build - Validate determinism

- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\Debug'
ArtifactName: 'Build Determinism Files'
publishLocation: Container
continueOnError: true
condition: not(succeeded())

- job: Windows_Correctness_Test
pool: dotnet-external-temp
timeoutInMinutes: 90
steps:
- script: eng/test-build-correctness.cmd -configuration Release
displayName: Build - Validate correctness

- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\log\Release'
ArtifactName: 'Build Correctness Files'
publishLocation: Container
continueOnError: true
condition: not(succeeded())

- task: PublishBuildArtifacts@1
displayName: Publish Artifact Packages
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\packages\Release\PreRelease'
ArtifactName: 'Packages - PreRelease'
publishLocation: Container
condition: succeeded()

- job: Linux_Test
pool: DotNetCore-Linux
strategy:
maxParallel: 2
matrix:
coreclr:
_args: --testCoreClr
_name: CoreClr
_configuration: Debug
mono:
_args: --testMono --docker
_name: Mono
_configuration: Debug
timeoutInMinutes: 90
steps:
- script: ./eng/cibuild.sh --configuration $(_configuration) --prepareMachine $(_args)
displayName: Build and Test
- task: PublishTestResults@1
inputs:
testRunner: XUnit
testResultsFiles: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_configuration)/*.xml'
mergeTestResults: true
testRunTitle: 'Linux $(_name)'
condition: always()

- task: PublishBuildArtifacts@1
displayName: Publish Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(_configuration)'
ArtifactName: 'Linux $(_name)'
publishLocation: Container
continueOnError: true
condition: not(succeeded())

0 comments on commit 799a763

Please sign in to comment.