Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
6ef080c
Adding OneBranch pipeline YAML config file for PowerShell-Packages-Of…
Mar 22, 2024
78a81bf
Add mac packaging file
adityapatwardhan Mar 23, 2024
64c36b3
Updates
adityapatwardhan Mar 26, 2024
ebaec0d
Mac x64 package
adityapatwardhan Mar 27, 2024
acc7404
Fix sdl issue
adityapatwardhan Mar 27, 2024
f15ae66
Fix variable
adityapatwardhan Mar 27, 2024
0bc8684
Fix template call
adityapatwardhan Mar 27, 2024
6311e2d
Fix download
adityapatwardhan Mar 27, 2024
a6c4c39
Fix build json creation
adityapatwardhan Mar 27, 2024
50846e8
Fix ReleaseTagVar variable
adityapatwardhan Mar 27, 2024
741ecde
Add output directory
adityapatwardhan Mar 27, 2024
4b07ea3
Capture env
adityapatwardhan Mar 27, 2024
96560ef
Make env variable name all caps
adityapatwardhan Mar 27, 2024
5c5fc23
Download and uncompress
adityapatwardhan Mar 27, 2024
1c9582f
Use reporoot
adityapatwardhan Mar 27, 2024
9630182
Add restore-psoptions
adityapatwardhan Mar 27, 2024
594c233
Add macos packaging
adityapatwardhan Mar 28, 2024
fa57cdb
Remove zip expansion
adityapatwardhan Mar 28, 2024
d14b6d7
Fix error in path
adityapatwardhan Mar 28, 2024
548cef9
debug download
adityapatwardhan Mar 28, 2024
84f0416
Copy signed files to staging
adityapatwardhan Mar 28, 2024
100db10
Fix typo
adityapatwardhan Mar 28, 2024
2938ab8
Make start-pspackage take bin path
adityapatwardhan Mar 28, 2024
11faf48
Fix variable setting issue
adityapatwardhan Mar 28, 2024
52a2d7b
Upload macos packages
adityapatwardhan Mar 28, 2024
08ecbf1
Fix typo
adityapatwardhan Mar 28, 2024
1c007c2
Add arm64 and cleanup macos package build
adityapatwardhan Mar 28, 2024
b61bd29
Add windows
adityapatwardhan Mar 29, 2024
4432840
Add windows signing
adityapatwardhan Mar 30, 2024
183992b
Call correct template
adityapatwardhan Mar 30, 2024
326914f
Fix job names
adityapatwardhan Mar 30, 2024
8084e5f
Fix slashes
adityapatwardhan Mar 30, 2024
696a36c
Debug
adityapatwardhan Mar 30, 2024
de1c335
Fix repo root
adityapatwardhan Mar 30, 2024
b6631f9
Add debug
adityapatwardhan Mar 30, 2024
2d12d95
Fix variable usage
adityapatwardhan Mar 30, 2024
c1c1826
Fix runtime for fxdependent and disable msi
adityapatwardhan Mar 30, 2024
e1f43b5
Enable msi build
adityapatwardhan Mar 30, 2024
3f18d27
Fixes
adityapatwardhan Apr 1, 2024
e991c2a
Fixes 2
adityapatwardhan Apr 1, 2024
b9ca4fd
Add msix
adityapatwardhan Apr 1, 2024
a32ba2b
Fix wix arm64
adityapatwardhan Apr 1, 2024
50b3cff
Install the wix tools
adityapatwardhan Apr 1, 2024
215e637
Add linux stage and fix windows minsize
adityapatwardhan Apr 2, 2024
925c6fb
Fix linux stage
adityapatwardhan Apr 2, 2024
5e30fde
Fix parameters
adityapatwardhan Apr 2, 2024
741cd44
Fix job name
adityapatwardhan Apr 2, 2024
29b5b76
Fix job names
adityapatwardhan Apr 2, 2024
b6c41de
Add linux container name
adityapatwardhan Apr 2, 2024
bfe4ecd
Remove mkdir
adityapatwardhan Apr 2, 2024
380d99f
Save unsigned drop variable
adityapatwardhan Apr 2, 2024
f33a362
Fix PSRestore
adityapatwardhan Apr 2, 2024
cea620e
Fix package names
adityapatwardhan Apr 2, 2024
5443b65
Fix windows minsize
adityapatwardhan Apr 2, 2024
8c2fd4c
Fix linux drop names and windows minsize condition
adityapatwardhan Apr 3, 2024
0f24991
Fix win minsize
adityapatwardhan Apr 3, 2024
804aecc
Fix indent
adityapatwardhan Apr 3, 2024
305503a
Fix psoptions path for minsize
adityapatwardhan Apr 3, 2024
91be7ea
fix win minsize package type
adityapatwardhan Apr 3, 2024
e4593d0
Fix win minsize
adityapatwardhan Apr 3, 2024
a953dd1
Add nuget pkgs
adityapatwardhan Apr 3, 2024
58c2a1c
Fix paths for repo
adityapatwardhan Apr 3, 2024
b3d42ce
Fix package types for windows
adityapatwardhan Apr 3, 2024
cd304fd
Fix variable name
adityapatwardhan Apr 3, 2024
4944d87
Fix package path
adityapatwardhan Apr 3, 2024
a2490e9
Add nupkg packaging from source
adityapatwardhan Apr 3, 2024
b841552
Fix drop path
adityapatwardhan Apr 3, 2024
becc1db
Add capture
adityapatwardhan Apr 3, 2024
d5a9416
Remove test-path
adityapatwardhan Apr 3, 2024
eb64f10
Fix typo
adityapatwardhan Apr 3, 2024
a6a9a5e
Add logging
adityapatwardhan Apr 3, 2024
f8e3184
Add logging 2
adityapatwardhan Apr 3, 2024
ee90909
Fix cgmanifest skip
adityapatwardhan Apr 3, 2024
e2b7ff6
Add windows and linux package signing
adityapatwardhan Apr 3, 2024
583fbbd
Add nuget signing
adityapatwardhan Apr 3, 2024
1843e28
Add list of artifacts
adityapatwardhan Apr 3, 2024
705f029
Add list of artifacts
adityapatwardhan Apr 3, 2024
9dec566
Move steps to before restore phase
adityapatwardhan Apr 3, 2024
7704539
Set repo root correctly
adityapatwardhan Apr 3, 2024
ba1d338
Fix repo root
adityapatwardhan Apr 3, 2024
0ce3fbf
Sign under Pipeline workspace
adityapatwardhan Apr 4, 2024
b85afdd
Fix linux signing
adityapatwardhan Apr 4, 2024
b28bc92
Fix nupkg signing
adityapatwardhan Apr 4, 2024
e1430b0
Move steps to restore and change feeds
adityapatwardhan Apr 4, 2024
736f2fb
Fix paths
adityapatwardhan Apr 4, 2024
307ffee
Fix paths in nupkg.yml
adityapatwardhan Apr 4, 2024
206cb91
Fix paths in nupkg.yml 2
adityapatwardhan Apr 4, 2024
4096be3
Fixes
adityapatwardhan Apr 4, 2024
f324cb3
Fix quotes
adityapatwardhan Apr 4, 2024
6f1cf52
Fix dest
adityapatwardhan Apr 4, 2024
784703c
Set location
adityapatwardhan Apr 4, 2024
12b3f42
Fix indent
adityapatwardhan Apr 4, 2024
927811e
Add verbose
adityapatwardhan Apr 4, 2024
b092574
Add variable grp
adityapatwardhan Apr 4, 2024
1ec1ef5
Remove env variable
adityapatwardhan Apr 4, 2024
883bba2
Fix typo
adityapatwardhan Apr 4, 2024
b998e51
Fix path of the nuget folder to sign
adityapatwardhan Apr 4, 2024
972c252
Fix signed paths
adityapatwardhan Apr 4, 2024
220279f
Sign reference assemblies
adityapatwardhan Apr 5, 2024
53debb8
Create global tools
adityapatwardhan Apr 5, 2024
df61299
Fix path for drop
adityapatwardhan Apr 5, 2024
2df160d
Fix path for drop in create global tool
adityapatwardhan Apr 5, 2024
f1ad447
Add logging
adityapatwardhan Apr 5, 2024
15ad7cb
Add logging for variable setting
adityapatwardhan Apr 5, 2024
8a4c92a
Use global variables as env variable wont be available till next process
adityapatwardhan Apr 5, 2024
f691f93
Fix typo
adityapatwardhan Apr 5, 2024
e5f2940
Make exe packages
adityapatwardhan Apr 15, 2024
7bedaa9
Set repo root
adityapatwardhan Apr 15, 2024
735bb9d
Add exe signing
adityapatwardhan Apr 15, 2024
80de1aa
Add upload stage
adityapatwardhan Apr 15, 2024
967b169
Add the new yaml
adityapatwardhan Apr 15, 2024
196c3cf
Upload all files to azure in containers
adityapatwardhan Apr 16, 2024
9e53515
fix pattern
adityapatwardhan Apr 16, 2024
26dffee
fix download
adityapatwardhan Apr 16, 2024
3a35776
Fix win fxd windesktop upload
adityapatwardhan Apr 16, 2024
2cdef2e
Fix upload script
adityapatwardhan Apr 16, 2024
88a6a1b
Fix az ps task
adityapatwardhan Apr 16, 2024
a0f4908
Add AzRM uninstall and Az install
adityapatwardhan Apr 16, 2024
8f73dee
Set version variables
adityapatwardhan Apr 16, 2024
b417c7a
Add env capture
adityapatwardhan Apr 16, 2024
1fddfd9
Fix get-childitem
adityapatwardhan Apr 17, 2024
bc84a88
Upload fixes
adityapatwardhan Apr 17, 2024
a3d1604
Add debug
adityapatwardhan Apr 17, 2024
2d16a2a
Add debug 2
adityapatwardhan Apr 17, 2024
c990268
Add wildecard for path
adityapatwardhan Apr 17, 2024
d898160
Fix download
adityapatwardhan Apr 17, 2024
525b4a4
Add SHA files
adityapatwardhan Apr 18, 2024
355842c
Fix typo
adityapatwardhan Apr 18, 2024
47503e6
Use wix 3.14.1
adityapatwardhan Apr 18, 2024
452eccd
Fix upload
adityapatwardhan Apr 18, 2024
d3f84bd
Revert changes done my mistake
adityapatwardhan Apr 18, 2024
7f592f3
Merge branch 'master' into OBP_Official_adityap_upVOc6
adityapatwardhan Apr 18, 2024
c617f20
Update creds
adityapatwardhan Apr 19, 2024
9d8f118
Merge branch 'OBP_Official_adityap_upVOc6' of https://github.com/adit…
adityapatwardhan Apr 19, 2024
1e33ccf
Add the variable group
adityapatwardhan Apr 19, 2024
a256f34
Fix comment
adityapatwardhan Apr 19, 2024
8bb6dba
Try mariner for building linux packages
adityapatwardhan Apr 22, 2024
3e3b3e9
Allow building on mariner
adityapatwardhan Apr 22, 2024
a20426b
Add rexml gem
adityapatwardhan Apr 22, 2024
1359167
Fix after scripts to use distribution
adityapatwardhan Apr 22, 2024
a7ad75f
Add zlib gem
adityapatwardhan Apr 22, 2024
b15e40f
Remove zlib and update fpm and ffi version
adityapatwardhan Apr 22, 2024
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
1 change: 1 addition & 0 deletions .pipelines/PowerShell-Coordinated_Packages-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ variables:
- name: SKIP_SIGNING
value: ${{ parameters.SKIP_SIGNING }}
- group: 'AzDevOpsArtifacts'
- group: 'mscodehub-feed-read-akv'

extends:
template: v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates
Expand Down
223 changes: 223 additions & 0 deletions .pipelines/PowerShell-Packages-Official.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
trigger: none # https://aka.ms/obpipelines/triggers

parameters: # parameters are shown up in ADO UI in a build queue time
- name: 'debug'
displayName: 'Enable debug output'
type: boolean
default: false
- name: InternalSDKBlobURL
displayName: URL to the blob having internal .NET SDK
type: string
default: ' '
- name: ReleaseTagVar
displayName: Release Tag
type: string
default: 'fromBranch'
- name: SKIP_SIGNING
displayName: Skip Signing
type: string
default: 'NO'

variables:
- name: CDP_DEFINITION_BUILD_COUNT
value: $[counter('', 0)] # needed for onebranch.pipeline.version task https://aka.ms/obpipelines/versioning
- name: system.debug
value: ${{ parameters.debug }}
- name: ENABLE_PRS_DELAYSIGN
value: 1
- name: ROOT
value: $(Build.SourcesDirectory)
- name: NUGET_XMLDOC_MODE
value: none
- name: nugetMultiFeedWarnLevel
value: none
- name: NugetSecurityAnalysisWarningLevel

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory some of these might not be needed with the restore/build phase model.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can defer work, Please have Jason track.

value: none
- name: skipNugetSecurityAnalysis
value: true
- name: ReleaseTagVar
value: ${{ parameters.ReleaseTagVar }}
- name: ob_outputDirectory
value: '$(Build.ArtifactStagingDirectory)/ONEBRANCH_ARTIFACT'
- name: WindowsContainerImage
value: 'onebranch.azurecr.io/windows/ltsc2019/vse2022:latest' # Docker image which is used to build the project https://aka.ms/obpipelines/containers
- name: LinuxContainerImage
value: mcr.microsoft.com/onebranch/cbl-mariner/build:2.0
- group: mscodehub-feed-read-akv

resources:
pipelines:
- pipeline: CoOrdinatedBuildPipeline
source: 'PowerShell-Coordinated Packages-Official'
trigger:
branches:
include:
- master
- releases/*

repositories:
- repository: templates
type: git
name: OneBranch.Pipelines/GovernedTemplates
ref: refs/heads/main

extends:
template: v2/OneBranch.Official.CrossPlat.yml@templates # https://aka.ms/obpipelines/templates
parameters:
cloudvault: # https://aka.ms/obpipelines/cloudvault
enabled: false
featureFlags:
linuxEsrpSigning: true
globalSdl:
disableLegacyManifest: true
# disabled Armorty as we dont have any ARM templates to scan. It fails on some sample ARM templates.
armory:
enabled: false
sbom:
enabled: true
compiled:
enabled: false
credscan:
enabled: true
scanFolder: $(Build.SourcesDirectory)
suppressionsFile: $(Build.SourcesDirectory)\.config\suppress.json
cg:
enabled: true
ignoreDirectories: '.devcontainer,demos,docker,docs,src,test,tools/packaging'
asyncSdl: # https://aka.ms/obpipelines/asyncsdl
enabled: true
forStages: ['build']
credscan:
enabled: true
scanFolder: $(Build.SourcesDirectory)
suppressionsFile: $(Build.SourcesDirectory)\PowerShell\.config\suppress.json
binskim:
enabled: false
# APIScan requires a non-Ready-To-Run build
apiscan:
enabled: false
tsaOptionsFile: .config\tsaoptions.json
stages:
- stage: mac_package
jobs:
- template: /.pipelines/templates/mac-package-build.yml@self
parameters:
buildArchitecture: x64

- template: /.pipelines/templates/mac-package-build.yml@self
parameters:
buildArchitecture: arm64

- stage: windows_package
jobs:
- template: /.pipelines/templates/windows-package-build.yml@self
parameters:
runtime: x64

- template: /.pipelines/templates/windows-package-build.yml@self
parameters:
runtime: arm64

- template: /.pipelines/templates/windows-package-build.yml@self
parameters:
runtime: x86

- template: /.pipelines/templates/windows-package-build.yml@self
parameters:
runtime: fxdependent

- template: /.pipelines/templates/windows-package-build.yml@self
parameters:
runtime: fxdependentWinDesktop

- template: /.pipelines/templates/windows-package-build.yml@self
parameters:
runtime: minsize

- stage: linux_package
jobs:
- template: /.pipelines/templates/linux-package-build.yml@self
parameters:
unsignedDrop: 'drop_linux_build_linux_x64'
signedDrop: 'drop_linux_sign_linux_x64'
packageType: deb
jobName: deb

- template: /.pipelines/templates/linux-package-build.yml@self
parameters:
unsignedDrop: 'drop_linux_build_linux_fxd_x64_mariner'
signedDrop: 'drop_linux_sign_linux_fxd_x64_mariner'
packageType: rpm-fxdependent #mariner-x64
jobName: mariner_x64

- template: /.pipelines/templates/linux-package-build.yml@self
parameters:
unsignedDrop: 'drop_linux_build_linux_fxd_arm64_mariner'
signedDrop: 'drop_linux_sign_linux_fxd_arm64_mariner'
packageType: rpm-fxdependent-arm64 #mariner-arm64
jobName: mariner_arm64

- template: /.pipelines/templates/linux-package-build.yml@self
parameters:
unsignedDrop: 'drop_linux_build_linux_x64'
signedDrop: 'drop_linux_sign_linux_x64'
packageType: rpm
jobName: rpm

- template: /.pipelines/templates/linux-package-build.yml@self
parameters:
unsignedDrop: 'drop_linux_build_linux_arm'
signedDrop: 'drop_linux_sign_linux_arm'
packageType: tar-arm
jobName: tar_arm

- template: /.pipelines/templates/linux-package-build.yml@self
parameters:
unsignedDrop: 'drop_linux_build_linux_arm64'
signedDrop: 'drop_linux_sign_linux_arm64'
packageType: tar-arm64
jobName: tar_arm64

- template: /.pipelines/templates/linux-package-build.yml@self
parameters:
unsignedDrop: 'drop_linux_build_linux_x64_alpine'
signedDrop: 'drop_linux_sign_linux_x64_alpine'
packageType: tar-alpine
jobName: tar_alpine

- template: /.pipelines/templates/linux-package-build.yml@self
parameters:
unsignedDrop: 'drop_linux_build_linux_fxd'
signedDrop: 'drop_linux_sign_linux_fxd'
packageType: fxdependent
jobName: fxdependent

- template: /.pipelines/templates/linux-package-build.yml@self
parameters:
unsignedDrop: 'drop_linux_build_linux_x64'
signedDrop: 'drop_linux_sign_linux_x64'
packageType: tar
jobName: tar

- template: /.pipelines/templates/linux-package-build.yml@self
parameters:
unsignedDrop: 'drop_linux_build_linux_fxd_x64_alpine'
signedDrop: 'drop_linux_sign_linux_fxd_x64_alpine'
packageType: tar-alpine-fxdependent
jobName: tar_alpine_fxd

- template: /.pipelines/templates/linux-package-build.yml@self
parameters:
unsignedDrop: 'drop_linux_build_linux_x64_minSize'
signedDrop: 'drop_linux_sign_linux_x64_minSize'
packageType: min-size
jobName: minSize

- stage: nupkg
jobs:
- template: /.pipelines/templates/nupkg.yml@self

- stage: upload
dependsOn: [mac_package, windows_package, linux_package, nupkg]
jobs:
- template: /.pipelines/templates/uploadToAzure.yml@self
8 changes: 4 additions & 4 deletions .pipelines/templates/SetVersionVariables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ steps:
downloadPath: '$(System.ArtifactsDirectory)'
displayName: Download Build Info Json
env:
ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue

- powershell: |
$path = "./build.psm1"
Expand Down Expand Up @@ -43,7 +43,7 @@ steps:
}
displayName: 'Set repo Root'
env:
ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue

- powershell: |
$createJson = ("${{ parameters.CreateJson }}" -ne "no")
Expand All @@ -58,11 +58,11 @@ steps:
Write-Host "##$vstsCommandString"
displayName: 'Set ${{ parameters.ReleaseTagVarName }} and other version Variables'
env:
ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue

- powershell: |
Get-ChildItem -Path env:
displayName: Capture environment
condition: succeededOrFailed()
env:
ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
4 changes: 2 additions & 2 deletions .pipelines/templates/insert-nuget-config-azfeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ steps:
- pwsh: |
$configPath = "${env:NugetConfigDir}/nuget.config"
Import-Module ${{ parameters.repoRoot }}/build.psm1 -Force
New-NugetConfigFile -NugetFeedUrl $(PowerShellCore_PublicPackages) -UserName $(AzDevOpsFeedUserName) -ClearTextPAT $(AzDevOpsFeedUserName) -FeedName AzDevOpsFeed -Destination "${env:NugetConfigDir}"
New-NugetConfigFile -NugetFeedUrl $(PowerShellCore_PublicPackages) -UserName $(AzDevopsFeedUserNameKVPAT) -ClearTextPAT $(mscodehubPackageReadPat) -FeedName AzDevOpsFeed -Destination "${env:NugetConfigDir}"
if(-not (Test-Path $configPath))
{
throw "nuget.config is not created"
Expand All @@ -20,7 +20,7 @@ steps:
- pwsh: |
$configPath = "${env:NugetConfigDir}/nuget.config"
Import-Module ${{ parameters.repoRoot }}/build.psm1 -Force
New-NugetConfigFile -NugetFeedUrl $(PowerShellCore_PublicPackages) -UserName $(AzDevOpsFeedUserName) -ClearTextPAT $(AzDevOpsFeedUserName) -FeedName AzDevOpsFeed -Destination "${env:NugetConfigDir}"
New-NugetConfigFile -NugetFeedUrl $(PowerShellCore_PublicPackages) -UserName $(AzDevopsFeedUserNameKVPAT) -ClearTextPAT $(mscodehubPackageReadPat) -FeedName AzDevOpsFeed -Destination "${env:NugetConfigDir}"
if(-not (Test-Path $configPath))
{
throw "nuget.config is not created"
Expand Down
Loading