Skip to content
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

2989 migrate ado release pipeline from classic UI to 1es #2995

Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
0e0c1fd
Added pipeline for internal release
Oct 15, 2024
a675b16
Merge branch 'dev' of https://github.com/microsoftgraph/msgraph-sdk-p…
Oct 15, 2024
76f4650
Updated CI build pipeline to have its own job of deploying to an inte…
Oct 15, 2024
ec475ef
Testing with calendar module only
Oct 15, 2024
0b32029
Changed stage name to build
Oct 15, 2024
31548f5
Removed dependancy
Oct 15, 2024
3261c37
Rectified template context
Oct 15, 2024
fadda72
Removed conditional statement
Oct 15, 2024
6ee0a23
Updated nuget push step
Oct 15, 2024
45f194d
Introduced another poolname for publishing
Oct 15, 2024
c423e3a
Updates
Oct 15, 2024
b22d4f2
Updated pipeline
Oct 15, 2024
8c06861
Corrected definition
Oct 15, 2024
7bb29bd
Added checkout none
Oct 15, 2024
a326d6d
Changed to inline task
Oct 15, 2024
4e92592
Removed unexpected checkout value
Oct 15, 2024
264d29e
Removed deployment strategy
Oct 15, 2024
7a7e587
Fixed formatting
Oct 15, 2024
a4896b9
Fixed pipeline formatting
Oct 15, 2024
7744224
Update
Oct 15, 2024
325a65d
Updates
Oct 15, 2024
5950792
Formatting issues
Oct 15, 2024
2fbe264
Formatting issues
Oct 15, 2024
81c6c3f
Added download task
Oct 15, 2024
47cf5a1
Specified dev environment
Oct 15, 2024
17bcec2
Added checkout to resolve credscan issues
Oct 16, 2024
1f40b0f
Removd unnecessary download artifact step
Oct 16, 2024
3b6d995
Updated version to test module publishing
Oct 16, 2024
53ad5ea
Changed the build type to current
Oct 16, 2024
2ceea4d
Added stage for deploying to powershell gallery
Oct 16, 2024
f8fe06f
Fixed formatting issues
Oct 16, 2024
fbfcecd
Added configuration for publishing to Powershell gallery
Oct 16, 2024
64506e9
Deleted unnecessary file
Oct 16, 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
71 changes: 63 additions & 8 deletions .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ parameters:
- name: Sign
type: boolean
default: true
- name: InternalFeed
type: string
default: '0985d294-5762-4bc2-a565-161ef349ca3e/PowerShell_V2_Build'
displayName: Internal NuGet Feed
values:
- '0985d294-5762-4bc2-a565-161ef349ca3e/PowerShell_v2'
- 'ATPopFeed'
- '0985d294-5762-4bc2-a565-161ef349ca3e/PowerShell_V2_Build'

variables:
BuildAgent: ${{ parameters.BuildAgent }}
Expand Down Expand Up @@ -64,13 +72,6 @@ extends:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'drop'
publishLocation: 'Container'
- ${{ if and(eq(parameters.Pack, true), eq(parameters.Sign, true)) }}:
- output: nuget
displayName: 'Publish NuGet to feed'
packageParentPath: '$(Build.ArtifactStagingDirectory)'
packagesToPush: $(Build.ArtifactStagingDirectory)/**/Microsoft.Graph.*.nupkg
publishVstsFeed: $(PROJECT_NAME)/$(FEED_NAME)
allowPackageConflicts: true
steps:
- script: |
git submodule update --init --recursive
Expand Down Expand Up @@ -103,4 +104,58 @@ extends:
FolderPath: "$(Build.ArtifactStagingDirectory)"
Pattern: "Microsoft.Graph*.nupkg"

- template: .azure-pipelines/common-templates/security-post-checks.yml@self
- template: .azure-pipelines/common-templates/security-post-checks.yml@self
- stage: 'Deploy_to_Internal_Feed'
dependsOn: stage
jobs:
- deployment: 'DeployToInternalFeed'
displayName: 'Deploy to Internal Feed'
environment: 'PowerShellInternalFeed'
strategy:
runOnce:
deploy:
steps:
- checkout: self
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifacts'
inputs:
buildType: 'current'
targetPath: '$(System.DefaultWorkingDirectory)'
- task: 1ES.PublishNuget@1
displayName: 'Publish NuGet to feed'
inputs:
useDotNetTask: false
packageParentPath: '$(System.DefaultWorkingDirectory)'
packagesToPush: '$(System.DefaultWorkingDirectory)/**/drop/**/*.nupkg'
publishVstsFeed: ${{ parameters.InternalFeed }}
nuGetFeedType: internal
allowPackageConflicts: true
- stage: 'Deploy_to_PsGallery'
dependsOn: stage
jobs:
- deployment: 'DeployToPowerShellGallery'
displayName: 'Deploy to PowerShell Gallery'
environment: 'PowerShellGallery'
strategy:
runOnce:
deploy:
steps:
- checkout: self
- task: DownloadPipelineArtifact@2
displayName: 'Download Build Artifacts'
inputs:
buildType: 'current'
targetPath: '$(System.DefaultWorkingDirectory)'
- task: 1ES.PublishNuget@1
displayName: 'Publish NuGet to feed'
inputs:
useDotNetTask: false
packageParentPath: '$(System.DefaultWorkingDirectory)'
packagesToPush: '$(System.DefaultWorkingDirectory)/**/drop/**/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'microsoftgraph PowerShell Gallery connection'