Skip to content

Commit 8735562

Browse files
peombwaYuriySamorodovtimayabi2020msewaweruddyett
authored
1.24.0 Release (#1884)
* Update New-MgTeamTagMember.md Fixed Example 1 (line 45) * Added a second example * Open api updates and module version update * Added AllowClober parameter to overwrite the existing old modules * Changed expected param sets to 3 on the connect-mggraph pester test * Conformed test results as per previous pipeline output * Returned parameter set count to 3 * Commented out null values * Rolled back * Update projectsbot.yml * Remove unsupported path in WindowsUpdates. * Remove create PR GitHub actions. (#1866) * Set default value for BaseBranch. * Set default value for BaseBranch for help docs. * Remove unnecessary KeyVault task. * Update create PR task. * Upgrade AzDo compliance tasks. * Update cred scan. * Set msBuildArchitecture to x64 * Weekly OpenAPI Docs Refresh (#1877) * Weekly OpenApiDocs Download. * Add generated MgCommandMetadata.json. [run ci] --------- Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com> * Add BinSkim. * Upgrade cred scan version. * Remove generate-helpdocs-template from normal builds. * Update AzDo Pipelines (#1881) * Remove unnecessary KeyVault task. * Update create PR task. * Upgrade AzDo compliance tasks. * Update cred scan. * Set msBuildArchitecture to x64 * Add BinSkim. * Upgrade cred scan version. * Remove generate-helpdocs-template from normal builds. * Remove duplicate AzDo task. --------- Co-authored-by: Yuriy Samorodov <Yuriy.Samorodov@gmail.com> Co-authored-by: Tim <timwamalwa@gmail.com> Co-authored-by: Eunice Waweru <73849846+msewaweru@users.noreply.github.com> Co-authored-by: DeVere Dyett <ddyett@microsoft.com> Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
1 parent 3aaacac commit 8735562

File tree

191 files changed

+151907
-153727
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+151907
-153727
lines changed

.azure-pipelines/common-templates/checkout.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ steps:
3333
git pull
3434
git status
3535
36-
37-
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
38-
displayName: "Run CredScan"
36+
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3
37+
displayName: 'Run CredScan - Src'
3938
inputs:
40-
debugMode: false
39+
debugMode: false
40+
scanFolder: '$(Build.SourcesDirectory)\src'
41+
toolMajorVersion: 'V2'

.azure-pipelines/common-templates/security-postchecks-template.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33
steps:
4-
- task: CodesignValidation@0
5-
6-
- task: SdtReport@1
4+
- task: SdtReport@2
75
displayName: "Security Analysis Report"
86
continueOnError: true
97
condition: succeededOrFailed()

.azure-pipelines/common-templates/security-prechecks-template.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# Copyright (c) Microsoft Corporation. All rights reserved.
22
# Licensed under the MIT License.
33
steps:
4-
- task: CredScan@2
5-
displayName: 'Run CredScan'
4+
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@3
5+
displayName: 'Run CredScan - Src'
66
inputs:
77
debugMode: false
8-
batchSize: 20
8+
scanFolder: '$(Build.SourcesDirectory)\src'
99
toolMajorVersion: 'V2'
10-
searchersFileType: 'Skype'
1110

12-
- task: PoliCheck@1
11+
- task: PoliCheck@2
1312
displayName: 'Run PoliCheck'
1413
condition: and(succeeded(), eq(eq(variables['Build.SourceBranch'], 'refs/heads/main'), false))
1514
inputs:

.azure-pipelines/generate-auth-module-template.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ parameters:
2121
displayName: 'Build Number'
2222
type: string
2323
default: $[format('{0:yyMMddHH}', pipeline.startTime)]
24-
- name: AZURESUBSCRIPTION
25-
default: "Microsoft Graph Build Agents (Win+Lin)"
26-
displayName: Azure Subscription
27-
28-
- name: KEYVAULT
29-
default: "msgraph-build-keyvault"
30-
displayName: Build Key vault
31-
3224

3325
jobs:
3426
- job: MsGraphPSSDKAuthModuleGeneration
@@ -37,13 +29,6 @@ jobs:
3729
steps:
3830
- template: ./common-templates/install-tools-template.yml
3931

40-
- task: AzureKeyVault@1
41-
inputs:
42-
azureSubscription: $(AZURESUBSCRIPTION)
43-
KeyVaultName: $(KEYVAULT)
44-
SecretsFilter: '*'
45-
RunAsPreJob: true
46-
4732
- task: PowerShell@2
4833
displayName: 'Generate and Build Auth Module'
4934
env:
@@ -63,19 +48,6 @@ jobs:
6348
projects: '$(System.DefaultWorkingDirectory)/src/Authentication/Authentication.Test/*.csproj'
6449
testRunTitle: 'Run Enabled Tests'
6550

66-
- task: RoslynAnalyzers@2
67-
inputs:
68-
userProvideBuildInfo: 'msBuildInfo'
69-
msBuildVersion: '16.0'
70-
msBuildArchitecture: 'DotNetCore'
71-
msBuildCommandline: '"C:\Program Files\dotnet\dotnet.exe" msbuild $(System.DefaultWorkingDirectory)//src//Authentication//Authentication.sln /nologo /nr:false'
72-
73-
- task: CodeMetrics@1
74-
displayName: 'Run CodeMetrics'
75-
inputs:
76-
Files: '$(System.DefaultWorkingDirectory)//**//Microsoft.Graph.Authentication.dll;$(System.DefaultWorkingDirectory)//**//Microsoft.Graph.Authentication.exe'
77-
continueOnError: true
78-
7951
- task: PowerShell@2
8052
displayName: 'Generate and Build Auth Module'
8153
inputs:

.azure-pipelines/generate-modules-template.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ jobs:
152152
script: |
153153
. $(System.DefaultWorkingDirectory)/tools/PostGeneration/FindDuplicateCommand.ps1 -SourcePath "$(System.DefaultWorkingDirectory)/src/"
154154
155-
- template: ./generation-templates/generate-helpdocs-template.yml
156-
157155
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
158156
displayName: 'ESRP DLL Strong Name (Graph Resource Modules)'
159157
enabled: true

.azure-pipelines/generation-templates/generate-helpdocs-template.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Licensed under the MIT License.
33

44
parameters:
5+
- name: BaseBranch
6+
type: string
7+
default: "dev"
58
- name: DOCSBRANCH
69
type: string
710
default: "DocsGeneration"
@@ -54,4 +57,17 @@ steps:
5457
script: |
5558
git status
5659
git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(ComputeBranch.DocsBranch)
57-
git status
60+
git status
61+
62+
- task: PowerShell@2
63+
displayName: Create Pull Request for Weekly Help Docs Generation
64+
env:
65+
GITHUB_TOKEN: $(GITHUB_TOKEN)
66+
inputs:
67+
pwsh: true
68+
targetType: inline
69+
script: |
70+
$Title = "[v1] Weekly Help Docs Generation"
71+
$Body = "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
72+
$BaseBranch = "${{ parameters.BaseBranch }}"
73+
. $(System.DefaultWorkingDirectory)/scripts/create-pull-request.ps1 -Title $Title -Body $Body -BaseBranchName $BaseBranch

.azure-pipelines/generation-templates/generate-service-modules.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ parameters:
2525
- name: GenerateHelpDocs
2626
type: boolean
2727
default: false
28+
- name: GeneratePullRequest
29+
type: boolean
30+
default: false
2831
- name: DOCSBRANCH
2932
type: string
3033
default: "DocsGeneration"
34+
- name: BaseBranchName
35+
type: string
36+
default: "dev"
3137

3238
jobs:
3339
- job: GenerateServiceModules
@@ -44,7 +50,9 @@ jobs:
4450
PublishToFeed: ${{ parameters.PublishToFeed }}
4551
GenerateCommandMetadata: ${{ parameters.GenerateCommandMetadata }}
4652
GenerateHelpDocs: ${{ parameters.GenerateHelpDocs }}
53+
GeneratePullRequest: ${{ parameters.GeneratePullRequest }}
4754
DocsBranch: ${{ parameters.DocsBranch }}
55+
BaseBranchName: ${{ parameters.BaseBranchName }}
4856
steps:
4957
- template: ../common-templates/checkout.yml
5058
parameters:
@@ -155,6 +163,21 @@ jobs:
155163
- ${{ if eq(parameters.GenerateCommandMetadata, true) }}:
156164
- template: ./generate-command-metadata-template.yml
157165

166+
- ${{ if eq(parameters.GeneratePullRequest, true) }}:
167+
- task: PowerShell@2
168+
displayName: Create Pull Request for generated build
169+
env:
170+
GITHUB_TOKEN: $(GITHUB_TOKEN)
171+
inputs:
172+
pwsh: true
173+
targetType: inline
174+
script: |
175+
$Title = "[v1] Weekly OpenApiDocs Refresh"
176+
$Body = "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
177+
$BaseBranch = "${{ parameters.BaseBranchName }}"
178+
Write-Host "Executing . $(System.DefaultWorkingDirectory)/scripts/create-pull-request.ps1 -Title $Title -Body $Body -BaseBranchName $BaseBranch"
179+
. $(System.DefaultWorkingDirectory)/scripts/create-pull-request.ps1 -Title $Title -Body $Body -BaseBranchName $BaseBranch
180+
158181
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
159182
displayName: ESRP DLL strong name (Service Modules)
160183
condition: and(succeeded(), eq('${{ parameters.EnableSigning }}', true))
@@ -290,8 +313,9 @@ jobs:
290313
- ${{ if eq(parameters.GenerateHelpDocs, true) }}:
291314
- template: ./generate-helpdocs-template.yml
292315
parameters:
293-
DOCSBRANCH: $(DocsBranch)
294-
ModulesToGenerate: $(ModulesToGenerate)
316+
BaseBranch: $(BaseBranchName)
317+
DOCSBRANCH: $(DocsBranch)
318+
ModulesToGenerate: $(ModulesToGenerate)
295319

296320
- task: PowerShell@2
297321
displayName: Find Duplicate Commands

.azure-pipelines/integrated-pipeline.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ parameters:
66
default: 1es-windows-ps-compute
77
displayName: Build Agent
88

9-
- name: AzureSubscription
10-
default: "Microsoft Graph Build Agents (Win+Lin)"
11-
displayName: Azure Subscription
12-
13-
- name: KeyVault
14-
default: "msgraph-build-keyvault"
15-
displayName: Build Key vault
16-
179
variables:
1810
AUTH_MODULE_NAME: 'Authentication'
1911
AUTH_MODULE_PATH: 'src\Authentication\Authentication'
@@ -29,8 +21,6 @@ variables:
2921
GitUserName: 'Microsoft Graph DevX Tooling'
3022
BUILDNUMBER: -1
3123
BUILDAGENT: ${{ parameters.BuildAgent }}
32-
AZURESUBSCRIPTION: ${{ parameters.AzureSubscription }}
33-
KEYVAULT: ${{ parameters.KeyVault }}
3424

3525
pool: $(BUILDAGENT)
3626

@@ -72,18 +62,6 @@ stages:
7262
Write-Host $(BUILDNUMBER)
7363
printenv
7464
75-
- stage: GetSecrets
76-
displayName: 'Get Secrets From Azure KeyVault'
77-
jobs:
78-
- job: GetSecrets
79-
steps:
80-
- task: AzureKeyVault@1
81-
inputs:
82-
azureSubscription: $(AZURESUBSCRIPTION)
83-
KeyVaultName: $(KEYVAULT)
84-
SecretsFilter: '*'
85-
RunAsPreJob: true
86-
8765
- stage: SecurityPreChecks
8866
displayName: 'Security Pre Checks'
8967
jobs:
@@ -102,8 +80,6 @@ stages:
10280
AUTH_MODULE_PATH: $(AUTH_MODULE_PATH)
10381
EnableSigning: true
10482
BUILDNUMBER: $(BUILDNUMBER)
105-
KEYVAULT: $(KEYVAULT)
106-
AZURESUBSCRIPTION: $(AZURESUBSCRIPTION)
10783

10884
- stage: GenerateModules
10985
displayName: 'Generate Modules (Microsoft.Graph.*)'

.azure-pipelines/weekly-examples-update.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
2+
23
trigger: none # disable triggers based on commits.
34
pr: none # disable as a PR gate.
45
name: 'PowerShellExamplesUpdate Check'
@@ -57,4 +58,17 @@ jobs:
5758
git add .
5859
git commit -m "Updating examples "+$date
5960
git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $proposedBranch
60-
git status
61+
git status
62+
63+
- task: PowerShell@2
64+
displayName: Create examples update
65+
env:
66+
GITHUB_TOKEN: $(GITHUB_TOKEN)
67+
inputs:
68+
pwsh: true
69+
targetType: inline
70+
script: |
71+
$Title = "[v1] Examples Update"
72+
$Body = "This pull request was automatically created by Azure Pipelines. Contains examples update."
73+
$BaseBranch = "dev"
74+
. $(System.DefaultWorkingDirectory)/scripts/create-pull-request.ps1 -Title $Title -Body $Body -BaseBranchName $BaseBranch

.azure-pipelines/weekly-generation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ stages:
5454
AuthModulePath: "src/Authentication/Authentication"
5555
ServiceModulePath: "src/"
5656
ModulePrefix: "Microsoft.Graph"
57+
BaseBranchName: $(BaseBranch)
5758
EnableSigning: false
5859
PublishToFeed: false
5960
GenerateCommandMetadata: true
6061
GenerateHelpDocs: true
62+
GeneratePullRequest: true

.github/workflows/create-helpdocs-pr-workflow.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/create-openapidocs-pr-workflow.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)