Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ parameters:
- name: BaseBranch
type: string
default: "dev"
- name: BuildAgent
default: MsGraphBuildAgentsWindows
displayName: Build Agent

jobs:
- job: GetLatestDocs
displayName: Download OpenApiDocs
pool: MsGraphDevXAzureAgents
pool: $(BuildAgent)
steps:
- template: ./checkout.yml

Expand Down
3 changes: 1 addition & 2 deletions .azure-pipelines/generate-auth-module-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ parameters:
jobs:
- job: MsGraphPSSDKAuthModuleGeneration
displayName: Microsoft Graph PowerShell SDK Auth Module Generation
pool: MsGraphDevXAzureAgents


steps:
- template: ./install-tools-template.yml

Expand Down
1 change: 0 additions & 1 deletion .azure-pipelines/generate-modules-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ parameters:
jobs:
- job: MsGraphPSSDKServiceModulesGeneration
displayName: Microsoft Graph PowerShell SDK Service Module Generation
pool: MsGraphDevXAzureAgents
timeoutInMinutes: 600

steps:
Expand Down
1 change: 0 additions & 1 deletion .azure-pipelines/generate-rollup-module-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ parameters:
jobs:
- job: MsGraphPSSDKRollUpModuleGeneration
displayName: Microsoft Graph PowerShell SDK Roll-Up Module Generation
pool: MsGraphDevXAzureAgents
timeoutInMinutes: 600

steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ parameters:
- name: PublishToFeed
type: boolean
default: false

jobs:
- job: GenerateServiceModules
displayName: Service module generation
pool: MsGraphDevXAzureAgents
timeoutInMinutes: 360
condition: and(succeeded(), ne(stageDependencies.DownloadOpenAPIDocs.GetLatestDocs.outputs['OpenAPIDocDiff.ModulesWithChanges'], ''))
variables:
Expand Down
7 changes: 6 additions & 1 deletion .azure-pipelines/install-tools-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ steps:
debugMode: false
version: 3.x

- task: UseDotNet@2
displayName: 'Use .NET Core SDK 5.x'
inputs:
debugMode: false
version: 5.x

- task: NuGetToolInstaller@1
displayName: 'Install Nuget 5.7'
inputs:
Expand All @@ -28,7 +34,6 @@ steps:
targetType: inline
script: |
dotnet tool update --global PowerShell
pwsh

- task: PowerShell@2
displayName: 'Version Check'
Expand Down
22 changes: 19 additions & 3 deletions .azure-pipelines/integrated-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

parameters:
- name: BuildAgent
default: MsGraphBuildAgentsWindows
displayName: Build Agent

- name: AzureSubscription
default: "Microsoft Graph Build Agents (Win+Lin)"
displayName: Azure Subscription

- name: KeyVault
default: "msgraph-build-keyvault"
displayName: Build Key vault

variables:
AUTH_MODULE_NAME: 'Authentication'
AUTH_MODULE_PATH: 'src\Authentication\Authentication'
Expand All @@ -17,8 +30,11 @@ variables:
GitUserEmail: 'GraphTooling@service.microsoft.com'
GitUserName: 'Microsoft Graph DevX Tooling'
BUILDNUMBER: -1
BUILDAGENT: ${{ parameters.BuildAgent }}
AZURESUBSCRIPTION: ${{ parameters.AzureSubscription }}
KEYVAULT: ${{ parameters.KeyVault }}

pool: MsGraphDevXAzureAgents
pool: $(BUILDAGENT)

trigger:
branches:
Expand Down Expand Up @@ -54,8 +70,8 @@ stages:
steps:
- task: AzureKeyVault@1
inputs:
azureSubscription: 'Microsoft Graph Build Agents'
KeyVaultName: 'msgraph-build-vault'
azureSubscription: $(AZURESUBSCRIPTION)
KeyVaultName: $(KEYVAULT)
SecretsFilter: '*'
RunAsPreJob: true

Expand Down
3 changes: 0 additions & 3 deletions .azure-pipelines/security-postchecks-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
jobs:
- job: MsGraphPSSDKSecurityPostChecks
displayName: Microsoft Graph PowerShell SDK Security Post Checks
pool:
image: windows-latest
timeoutInMinutes: 600

steps:
- task: CodesignValidation@0
Expand Down
2 changes: 0 additions & 2 deletions .azure-pipelines/security-prechecks-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
jobs:
- job: MsGraphPSSDKSecurityPreChecks
displayName: Microsoft Graph PowerShell SDK Security Pre Checks
pool: MsGraphDevXAzureAgents
timeoutInMinutes: 600

steps:
- task: CredScan@2
displayName: 'Run CredScan'
Expand Down
11 changes: 10 additions & 1 deletion .azure-pipelines/weekly-generation.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.


name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
pool: MsGraphDevXAzureAgents

parameters:
- name: BuildAgent
default: MsGraphBuildAgentsWindows
displayName: Build Agent

variables:
Branch: "WeeklyOpenApiDocsDownload"
BaseBranch: "dev"
BUILDAGENT: ${{ parameters.BuildAgent }}

pool: $(BUILDAGENT)

trigger: none
pr: none
schedules:
Expand Down