Skip to content

Commit e9b8ba5

Browse files
authored
AzDo Pipeline Improvements (#1102)
* Test with Security module. * Specify build agent * Enable all modules. * Revert submodule update. * Skip CI for tests. * Run all modules. * Set base branch to dev. * Use PAT for git commands. * Checkout submodule from checkout task.
1 parent 9198594 commit e9b8ba5

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ steps:
1010
- checkout: self
1111
clean: true
1212
fetchDepth: 1
13+
submodules: true
1314
persistCredentials: true
1415

1516
- task: PowerShell@2
@@ -32,6 +33,7 @@ steps:
3233
git pull
3334
git status
3435
36+
3537
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
3638
displayName: "Run CredScan"
3739
inputs:

.azure-pipelines/common-templates/download-openapi-docs.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44
parameters:
55
- name: Branch
66
type: string
7-
default: "WeeklyOpenApiDocsDownload"
87
- name: BaseBranch
98
type: string
10-
default: "dev"
119
- name: BuildAgent
12-
default: MsGraphBuildAgentsWindows
1310
displayName: Build Agent
1411

1512
jobs:
@@ -132,7 +129,7 @@ jobs:
132129
git add .
133130
git commit -m 'Weekly OpenApiDocs Download. [run ci]'
134131
git status
135-
git push --set-upstream origin $(ComputeBranch.WeeklyBranch)
132+
git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(ComputeBranch.WeeklyBranch)
136133
git status
137134
138135
# References

.azure-pipelines/generation-templates/generate-command-metadata-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ steps:
2121
git status
2222
git add "$(System.DefaultWorkingDirectory)/src/Authentication/Authentication/custom/common/MgCommandMetadata.json"
2323
git commit -m 'Add generated MgCommandMetadata.json. [run ci]'
24-
git push
24+
git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
2525
git status

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ steps:
5353
targetType: inline
5454
script: |
5555
git status
56-
git push --set-upstream origin $(ComputeBranch.DocsBranch)
56+
git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(ComputeBranch.DocsBranch)
5757
git status

.azure-pipelines/weekly-generation.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ parameters:
1111
variables:
1212
Branch: "WeeklyOpenApiDocsDownload"
1313
BaseBranch: "dev"
14-
BUILDAGENT: ${{ parameters.BuildAgent }}
15-
16-
pool: $(BUILDAGENT)
14+
BuildAgent: ${{ parameters.BuildAgent }}
1715

16+
pool: $(BuildAgent)
1817
trigger: none
1918
pr: none
2019
schedules:
21-
- cron: "0 12 * * WED" # Run every wednesday at noon UTC
20+
- cron: "0 12 * * WED" # Run every Wednesday at noon UTC
2221
displayName: "Weekly PS SDK generation"
2322
branches:
2423
include:
@@ -33,6 +32,7 @@ stages:
3332
parameters:
3433
Branch: $(Branch)
3534
BaseBranch: $(BaseBranch)
35+
BuildAgent: $(BuildAgent)
3636

3737
- stage: GenerateServiceModules
3838
displayName: Generate service modules

0 commit comments

Comments
 (0)