Skip to content

Commit

Permalink
Do not include optprof in VSSetup
Browse files Browse the repository at this point in the history
  • Loading branch information
tmat committed Dec 10, 2018
1 parent ba40426 commit e042dfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines-official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
inputs:
dropServiceURI: 'https://devdiv.artifacts.visualstudio.com'
buildNumber: 'ProfilingInputs/DevDiv/$(Build.Repository.Name)/$(Build.SourceBranchName)/$(Build.BuildId)'
sourcePath: '$(Build.SourcesDirectory)\artifacts\VSSetup\$(BuildConfiguration)\Insertion\OptProf'
sourcePath: '$(Build.SourcesDirectory)\artifacts\OptProf\$(BuildConfiguration)\Data'
toLowerCase: false
usePat: false
displayName: 'OPTPROF - Publish to Artifact Services - ProfilingInputs'
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
# Publish scripts to get the branch of VS that this inserts into
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\VSSetup\$(BuildConfiguration)\Insertion\BranchInfo'
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\OptProf\$(BuildConfiguration)\BranchInfo'
ArtifactName: BranchInfo
ArtifactType: Container
displayName: 'OPTPROF - Publish Artifact: BranchInfo'
Expand Down
9 changes: 5 additions & 4 deletions eng/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,14 @@ function Build-OptProfData() {
$optProfToolExe = Join-Path $optProfToolDir "tools\roslyn.optprof.exe"
$configFile = Join-Path $RepoRoot "eng\config\OptProf.json"
$insertionFolder = Join-Path $VSSetupDir "Insertion"
$outputFolder = Join-Path $insertionFolder "OptProf"
Write-Host "Generating optprof data using '$configFile' into '$outputFolder'"
$optProfArgs = "--configFile $configFile --insertionFolder $insertionFolder --outputFolder $outputFolder"
$outputFolder = Join-Path $ArtifactsDir "OptProf\$configuration"
$dataFolder = Join-Path $outputFolder "Data"
Write-Host "Generating optprof data using '$configFile' into '$dataFolder'"
$optProfArgs = "--configFile $configFile --insertionFolder $insertionFolder --outputFolder $dataFolder"
Exec-Console $optProfToolExe $optProfArgs

# Write Out Branch we are inserting into
$vsBranchFolder = Join-Path $insertionFolder "BranchInfo"
$vsBranchFolder = Join-Path $outputFolder "BranchInfo"
New-Item -ItemType Directory -Force -Path $vsBranchFolder
$vsBranchText = Join-Path $vsBranchFolder "vsbranch.txt"
# InsertTargetBranchFullName is defined in .vsts-ci.yml
Expand Down

0 comments on commit e042dfd

Please sign in to comment.