Skip to content

Commit

Permalink
Update area path and fix build pipeline to generate correct SBOM (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxian-dbw committed Sep 6, 2024
1 parent 2494b65 commit d30bf52
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .config/tsaoptions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"instanceUrl": "https://msazure.visualstudio.com",
"projectName": "One",
"areaPath": "One\\MGMT\\Compute\\Powershell\\Powershell\\PowerShell Core",
"areaPath": "One\\MGMT\\Compute\\Powershell\\Powershell\\PowerShell Core\\AIShell",
"notificationAliases": [
"[email protected]",
"[email protected]"
Expand Down
12 changes: 12 additions & 0 deletions .pipelines/templates/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,18 @@ jobs:
env:
ob_restore_phase: true
- template: /.pipelines/templates/update-nuget-config.yml@self
parameters:
repoRoot: $(repoRoot)

- pwsh: |
Import-Module $(repoRoot)/build.psm1 -Force
Install-Dotnet
Start-Build -Configuration Release -Clean -NotIncludeModule -Verbose
displayName: 'Build again to get correct SBOM'
env:
ob_restore_phase: true
- task: DownloadPipelineArtifact@2
inputs:
artifact: drop_linux_build_$(Architecture)
Expand Down
14 changes: 14 additions & 0 deletions .pipelines/templates/mac-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ jobs:
Write-Host "##vso[artifact.upload containerfolder=$artifactName;artifactname=$artifactName]$($result.App)"
}
displayName: 'Build macOS'
env:
ob_restore_phase: true
- template: /.pipelines/templates/finalize.yml@self

Expand Down Expand Up @@ -109,6 +111,18 @@ jobs:
env:
ob_restore_phase: true
- template: /.pipelines/templates/update-nuget-config.yml@self
parameters:
repoRoot: $(repoRoot)

- pwsh: |
Import-Module $(repoRoot)/build.psm1 -Force
Install-Dotnet
Start-Build -Configuration Release -Clean -NotIncludeModule -Verbose
displayName: 'Build again to get correct SBOM'
env:
ob_restore_phase: true
- task: DownloadPipelineArtifact@2
inputs:
artifact: 'macBuild-$(Architecture)'
Expand Down
12 changes: 12 additions & 0 deletions .pipelines/templates/module-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,18 @@ jobs:
env:
ob_restore_phase: true
- template: /.pipelines/templates/update-nuget-config.yml@self
parameters:
repoRoot: $(repoRoot)

- pwsh: |
Import-Module $(repoRoot)\build.psm1 -Force
Install-Dotnet
dotnet restore '$(repoRoot)\shell\AIShell.Integration'
displayName: 'Restore to get correct SBOM'
env:
ob_restore_phase: true
- task: DownloadPipelineArtifact@2
inputs:
artifact: drop_module_build
Expand Down

0 comments on commit d30bf52

Please sign in to comment.