-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Official PowerShell Package pipeline #21504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
adityapatwardhan
merged 142 commits into
PowerShell:master
from
adityapatwardhan:OBP_Official_adityap_upVOc6
Apr 22, 2024
Merged
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…
78a81bf
Add mac packaging file
adityapatwardhan 64c36b3
Updates
adityapatwardhan ebaec0d
Mac x64 package
adityapatwardhan acc7404
Fix sdl issue
adityapatwardhan f15ae66
Fix variable
adityapatwardhan 0bc8684
Fix template call
adityapatwardhan 6311e2d
Fix download
adityapatwardhan a6c4c39
Fix build json creation
adityapatwardhan 50846e8
Fix ReleaseTagVar variable
adityapatwardhan 741ecde
Add output directory
adityapatwardhan 4b07ea3
Capture env
adityapatwardhan 96560ef
Make env variable name all caps
adityapatwardhan 5c5fc23
Download and uncompress
adityapatwardhan 1c9582f
Use reporoot
adityapatwardhan 9630182
Add restore-psoptions
adityapatwardhan 594c233
Add macos packaging
adityapatwardhan fa57cdb
Remove zip expansion
adityapatwardhan d14b6d7
Fix error in path
adityapatwardhan 548cef9
debug download
adityapatwardhan 84f0416
Copy signed files to staging
adityapatwardhan 100db10
Fix typo
adityapatwardhan 2938ab8
Make start-pspackage take bin path
adityapatwardhan 11faf48
Fix variable setting issue
adityapatwardhan 52a2d7b
Upload macos packages
adityapatwardhan 08ecbf1
Fix typo
adityapatwardhan 1c007c2
Add arm64 and cleanup macos package build
adityapatwardhan b61bd29
Add windows
adityapatwardhan 4432840
Add windows signing
adityapatwardhan 183992b
Call correct template
adityapatwardhan 326914f
Fix job names
adityapatwardhan 8084e5f
Fix slashes
adityapatwardhan 696a36c
Debug
adityapatwardhan de1c335
Fix repo root
adityapatwardhan b6631f9
Add debug
adityapatwardhan 2d12d95
Fix variable usage
adityapatwardhan c1c1826
Fix runtime for fxdependent and disable msi
adityapatwardhan e1f43b5
Enable msi build
adityapatwardhan 3f18d27
Fixes
adityapatwardhan e991c2a
Fixes 2
adityapatwardhan b9ca4fd
Add msix
adityapatwardhan a32ba2b
Fix wix arm64
adityapatwardhan 50b3cff
Install the wix tools
adityapatwardhan 215e637
Add linux stage and fix windows minsize
adityapatwardhan 925c6fb
Fix linux stage
adityapatwardhan 5e30fde
Fix parameters
adityapatwardhan 741cd44
Fix job name
adityapatwardhan 29b5b76
Fix job names
adityapatwardhan b6c41de
Add linux container name
adityapatwardhan bfe4ecd
Remove mkdir
adityapatwardhan 380d99f
Save unsigned drop variable
adityapatwardhan f33a362
Fix PSRestore
adityapatwardhan cea620e
Fix package names
adityapatwardhan 5443b65
Fix windows minsize
adityapatwardhan 8c2fd4c
Fix linux drop names and windows minsize condition
adityapatwardhan 0f24991
Fix win minsize
adityapatwardhan 804aecc
Fix indent
adityapatwardhan 305503a
Fix psoptions path for minsize
adityapatwardhan 91be7ea
fix win minsize package type
adityapatwardhan e4593d0
Fix win minsize
adityapatwardhan a953dd1
Add nuget pkgs
adityapatwardhan 58c2a1c
Fix paths for repo
adityapatwardhan b3d42ce
Fix package types for windows
adityapatwardhan cd304fd
Fix variable name
adityapatwardhan 4944d87
Fix package path
adityapatwardhan a2490e9
Add nupkg packaging from source
adityapatwardhan b841552
Fix drop path
adityapatwardhan becc1db
Add capture
adityapatwardhan d5a9416
Remove test-path
adityapatwardhan eb64f10
Fix typo
adityapatwardhan a6a9a5e
Add logging
adityapatwardhan f8e3184
Add logging 2
adityapatwardhan ee90909
Fix cgmanifest skip
adityapatwardhan e2b7ff6
Add windows and linux package signing
adityapatwardhan 583fbbd
Add nuget signing
adityapatwardhan 1843e28
Add list of artifacts
adityapatwardhan 705f029
Add list of artifacts
adityapatwardhan 9dec566
Move steps to before restore phase
adityapatwardhan 7704539
Set repo root correctly
adityapatwardhan ba1d338
Fix repo root
adityapatwardhan 0ce3fbf
Sign under Pipeline workspace
adityapatwardhan b85afdd
Fix linux signing
adityapatwardhan b28bc92
Fix nupkg signing
adityapatwardhan e1430b0
Move steps to restore and change feeds
adityapatwardhan 736f2fb
Fix paths
adityapatwardhan 307ffee
Fix paths in nupkg.yml
adityapatwardhan 206cb91
Fix paths in nupkg.yml 2
adityapatwardhan 4096be3
Fixes
adityapatwardhan f324cb3
Fix quotes
adityapatwardhan 6f1cf52
Fix dest
adityapatwardhan 784703c
Set location
adityapatwardhan 12b3f42
Fix indent
adityapatwardhan 927811e
Add verbose
adityapatwardhan b092574
Add variable grp
adityapatwardhan 1ec1ef5
Remove env variable
adityapatwardhan 883bba2
Fix typo
adityapatwardhan b998e51
Fix path of the nuget folder to sign
adityapatwardhan 972c252
Fix signed paths
adityapatwardhan 220279f
Sign reference assemblies
adityapatwardhan 53debb8
Create global tools
adityapatwardhan df61299
Fix path for drop
adityapatwardhan 2df160d
Fix path for drop in create global tool
adityapatwardhan f1ad447
Add logging
adityapatwardhan 15ad7cb
Add logging for variable setting
adityapatwardhan 8a4c92a
Use global variables as env variable wont be available till next process
adityapatwardhan f691f93
Fix typo
adityapatwardhan e5f2940
Make exe packages
adityapatwardhan 7bedaa9
Set repo root
adityapatwardhan 735bb9d
Add exe signing
adityapatwardhan 80de1aa
Add upload stage
adityapatwardhan 967b169
Add the new yaml
adityapatwardhan 196c3cf
Upload all files to azure in containers
adityapatwardhan 9e53515
fix pattern
adityapatwardhan 26dffee
fix download
adityapatwardhan 3a35776
Fix win fxd windesktop upload
adityapatwardhan 2cdef2e
Fix upload script
adityapatwardhan 88a6a1b
Fix az ps task
adityapatwardhan a0f4908
Add AzRM uninstall and Az install
adityapatwardhan 8f73dee
Set version variables
adityapatwardhan b417c7a
Add env capture
adityapatwardhan 1fddfd9
Fix get-childitem
adityapatwardhan bc84a88
Upload fixes
adityapatwardhan a3d1604
Add debug
adityapatwardhan 2d16a2a
Add debug 2
adityapatwardhan c990268
Add wildecard for path
adityapatwardhan d898160
Fix download
adityapatwardhan 525b4a4
Add SHA files
adityapatwardhan 355842c
Fix typo
adityapatwardhan 47503e6
Use wix 3.14.1
adityapatwardhan 452eccd
Fix upload
adityapatwardhan d3f84bd
Revert changes done my mistake
adityapatwardhan 7f592f3
Merge branch 'master' into OBP_Official_adityap_upVOc6
adityapatwardhan c617f20
Update creds
adityapatwardhan 9d8f118
Merge branch 'OBP_Official_adityap_upVOc6' of https://github.com/adit…
adityapatwardhan 1e33ccf
Add the variable group
adityapatwardhan a256f34
Fix comment
adityapatwardhan 8bb6dba
Try mariner for building linux packages
adityapatwardhan 3e3b3e9
Allow building on mariner
adityapatwardhan a20426b
Add rexml gem
adityapatwardhan 1359167
Fix after scripts to use distribution
adityapatwardhan a7ad75f
Add zlib gem
adityapatwardhan b15e40f
Remove zlib and update fpm and ffi version
adityapatwardhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| 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 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.