Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
7e1d1f3
Creates an integrated Build Pipeline that executes all steps needed t…
Aug 31, 2020
55ced3e
build when equal to test pipeline
Aug 31, 2020
320c446
Change back to Windows Latest since PS build agent is offline.
Sep 1, 2020
e6c0334
Update generate-auth-module.yml
georgend Sep 3, 2020
29714a8
Update generate-auth-module-template.yml
georgend Sep 3, 2020
ab16139
Update generate-beta-modules-template.yml
georgend Sep 3, 2020
19f3440
Update generate-beta-rollup-module-template.yml
georgend Sep 3, 2020
a2190be
Update generate-beta-rollup-module-template.yml
georgend Sep 3, 2020
ba96eb7
Update generate-auth-module-template.yml
georgend Sep 3, 2020
07be3b2
Update generate-beta-modules-template.yml
georgend Sep 3, 2020
a8cdd6c
Update integrated-pipeline.yml
georgend Sep 3, 2020
3893068
Update generate-beta-modules-template.yml
georgend Sep 3, 2020
5f6589a
Update generate-auth-module-template.yml
georgend Sep 3, 2020
30773d9
Update generate-beta-rollup-module-template.yml
georgend Sep 3, 2020
eb76ec8
Add steps to Add required tools.
Sep 3, 2020
7a9a2cc
Incorrect install task.
Sep 4, 2020
cd1fb63
Test for powershell existence.
Sep 4, 2020
47ebc9a
formatting error.
Sep 4, 2020
d970ad8
inline script.
Sep 4, 2020
3952c08
idempotent install
Sep 4, 2020
f2b3013
inline scripts.
Sep 4, 2020
8e4c4a9
inline script issues.
Sep 4, 2020
ba4a51e
Version check
Sep 4, 2020
12c3344
switch to core
Sep 4, 2020
f0c9aff
Steps reuse
Sep 4, 2020
842a9ea
Git issue
Sep 4, 2020
1b6443d
remove git publish from integrated pipeline
Sep 4, 2020
f42fd5b
Formatting changes and cleanup
Sep 4, 2020
f97b9c4
Information. Move to 24 limit
Sep 4, 2020
8d91e20
Continue on V1 errors.
Sep 4, 2020
367420d
remove debug mode
Sep 4, 2020
1753ac1
beta version argument
Sep 4, 2020
24b4fc9
Fix up file paths.
Sep 4, 2020
a9971fc
formatting
Sep 4, 2020
a1f5532
revert back to old ps structure
Sep 4, 2020
4371dda
increase timeout
Sep 4, 2020
5b25dc6
version update
Sep 9, 2020
4e80253
Read from local feed.
Sep 14, 2020
909563a
Merge branch 'dev' into releaseCadencev2
Sep 14, 2020
3034fbd
Set nuget key
Sep 14, 2020
e841c38
ApiKey set
Sep 14, 2020
9ff3655
try and set a key
Sep 14, 2020
ea2c35e
nuget authenticate
Sep 14, 2020
736e11f
Git commit.,
Sep 14, 2020
bf74565
Minor changes and merge
Sep 14, 2020
d63ccf2
path filters
Sep 14, 2020
9c2384f
increase throttle limit to match packages
Sep 14, 2020
bb5a690
Merge branch 'dev' into releaseCadencev2
Sep 14, 2020
68bb4e1
Publish to Build Feed
Sep 14, 2020
f39738a
register PS Module
Sep 15, 2020
3acb1e4
list credential provider directory
Sep 15, 2020
be13c37
show
Sep 15, 2020
df199af
error
Sep 15, 2020
d67f389
variables
Sep 15, 2020
633def9
variables
Sep 15, 2020
c15ff65
verbose
Sep 15, 2020
d1cf567
stringify
Sep 15, 2020
18ab376
show repository
Sep 15, 2020
8851288
rollup repo
Sep 15, 2020
4de86ea
remove return result.
Sep 15, 2020
a47f49d
Rename to local nuget feed
Sep 15, 2020
2bf33d7
pass repository name
Sep 15, 2020
f6107fa
checks
Sep 15, 2020
21b6ec1
restart powershell.
Sep 15, 2020
a6639d6
update
Sep 15, 2020
ae28fcb
remove pwsh
Sep 15, 2020
0614e6b
remove pwsh
Sep 15, 2020
deb60de
register pacakge source
Sep 15, 2020
5c410d5
Add nuget again
Sep 15, 2020
a19b370
more script issues.
Sep 15, 2020
19a6a65
provider
Sep 15, 2020
8bd1bfd
nuget string
Sep 15, 2020
acd4df0
pass repo.
Sep 15, 2020
df1fed7
Allow clobber.
Sep 15, 2020
2c64d8f
Merge branch 'dev' into releaseCadencev2
Sep 15, 2020
aa32f0b
Rease OpenApiDocs Download
Sep 15, 2020
0cddafb
rename variables.
Sep 15, 2020
fe9c8d1
Merge branch 'releaseCadencev2' of https://github.com/microsoftgraph/…
Sep 15, 2020
8e47d73
Preview Modules
Sep 15, 2020
86b6c74
use build feed
Sep 15, 2020
bb33bc5
Skip CI
Sep 15, 2020
359895c
Rease OpenApiDocs Download [skip ci]
Sep 15, 2020
6d9727f
module preview number
Sep 15, 2020
35a1ef7
Merge branch 'releaseCadencev2' of https://github.com/microsoftgraph/…
Sep 15, 2020
c0fe22b
Rename job names.
Sep 15, 2020
4ab18a8
Only use date build number for non master branches.
Sep 15, 2020
9df21e8
Merge branch 'dev' into releaseCadencev2
georgend Sep 16, 2020
fc92081
pass along build number
Sep 16, 2020
cdc6c03
Merge branch 'releaseCadencev2' of https://github.com/microsoftgraph/…
Sep 16, 2020
816b293
only download docs when not main.
Sep 16, 2020
e3231fb
pass along main check
Sep 16, 2020
3f6129c
error in variable
Sep 16, 2020
ebc15d1
variable issue
Sep 16, 2020
0ead121
isMain
Sep 16, 2020
21d8a76
Remove main
Sep 16, 2020
49a62d0
remove minimum version
Sep 16, 2020
d979c39
find module
Sep 16, 2020
3e02f4c
debg and verbose
Sep 16, 2020
59e38f2
users only
Sep 16, 2020
ba683a5
full build
Sep 16, 2020
6737482
allow prelease
Sep 16, 2020
02d1984
authenticate earlier in chain
Sep 16, 2020
b788e99
memory issues
Sep 17, 2020
604e83a
logging
Sep 17, 2020
5ab109c
remove environment variable
Sep 17, 2020
006510c
autorest uypdates
Sep 17, 2020
2087396
use build number as preview version
Sep 17, 2020
58b793a
formatting
Sep 17, 2020
c3dc486
formatting
Sep 17, 2020
6c8fb7a
more formatitng issues.
Sep 17, 2020
57bf1de
format prechecks
Sep 17, 2020
b1cebc0
jobs and steps
Sep 17, 2020
2126455
nesting issues.
Sep 17, 2020
e69bc6a
format
Sep 17, 2020
86a012b
format issues
Sep 17, 2020
99f0359
preview issues.
Sep 17, 2020
8de7a36
build and revision
Sep 17, 2020
acaa8ac
Dont sign before testing
Sep 17, 2020
0792bbe
git pull
Sep 17, 2020
cdbf188
formatting
Sep 17, 2020
bed57ee
templates
Sep 17, 2020
4ff8e96
template formatting
Sep 17, 2020
664789b
variables
Sep 17, 2020
734cd53
formatting
Sep 17, 2020
c5f1e84
remove params
Sep 17, 2020
4933a96
show if variable is chaning
Sep 17, 2020
215ade1
rename build number variable
Sep 17, 2020
7a60894
commit issues
Sep 17, 2020
1cbec2c
build number issues
Sep 17, 2020
80fb844
remove pwsh
Sep 17, 2020
93faa7d
revert back to time
Sep 17, 2020
41d880d
tweaks to repo resolution
Sep 17, 2020
7cb94a6
20091800: Release OpenApiDocs Download for [skip ci]
Sep 18, 2020
0590db7
Remove malware step.
Sep 18, 2020
97c27c3
Merge branch 'releaseCadencev2' of https://github.com/microsoftgraph/…
Sep 18, 2020
2b23435
auth module fix
Sep 18, 2020
be173f0
versioning
Sep 18, 2020
ae82695
repo handling
Sep 18, 2020
0c6d920
versions across
Sep 18, 2020
dcde145
PreREleases
Sep 18, 2020
edbc5a5
typo
Sep 18, 2020
4ebbecd
allow
Sep 18, 2020
9ee3ce7
warnings
Sep 18, 2020
b67f072
feed name
Sep 18, 2020
6e37f5f
not on feed
Sep 19, 2020
4521d2e
manifest log
Sep 19, 2020
f0453c0
version issue
Sep 19, 2020
45bf33e
null issue
Sep 19, 2020
8a34196
preview
Sep 19, 2020
f0bc421
existing auth module
Sep 19, 2020
1fe800a
commit files
Sep 19, 2020
ef6f717
Change script
Sep 19, 2020
3bd065c
remove binskim
Sep 19, 2020
7a0932d
remove binskim
Sep 19, 2020
8011bf6
Release 0.9.2
Sep 19, 2020
a6330cc
version prep
Sep 19, 2020
5341d63
localfeed
Sep 19, 2020
fe897ee
fullbuild
Sep 19, 2020
5bf6880
git add
Sep 20, 2020
9fd3546
RepoSettings
Sep 20, 2020
6ba69db
Build Feed Usage
Sep 21, 2020
f06d231
commit files
Sep 21, 2020
2676a80
Remove logs and unused variables
Sep 21, 2020
be783ca
simplify git script
Sep 21, 2020
0bfe0eb
Git merge
Sep 21, 2020
86d9866
Merge
Sep 21, 2020
2059bd6
Merge branch 'dev' of https://github.com/microsoftgraph/msgraph-sdk-p…
Sep 21, 2020
2744073
Merge
Sep 21, 2020
f7e55c1
github commit
Sep 21, 2020
fdd1693
pull push
Sep 21, 2020
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
77 changes: 77 additions & 0 deletions .azure-pipelines/download-openapidocs-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

parameters:
- name: BUILDNUMBER
displayName: 'Build Number'
type: string
default: $[format('{0:yyMMddHH}', pipeline.startTime)]

jobs:
- job: MsGraphDownloadOpenApiDocs
displayName: Microsoft Graph PowerShell SDK Download OpenApiDocs Module Generation
pool: MsGraphDevXAzureAgents
timeoutInMinutes: 600

steps:
- checkout: self
persistCredentials: true

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

- task: PowerShell@2
displayName: 'Download v1.0 OpenApiDocs'
continueOnError: true
condition: and(succeeded(), eq(eq(variables['Build.SourceBranch'], 'refs/heads/master'), false))
inputs:
targetType: 'filePath'
pwsh: true
filePath: '$(System.DefaultWorkingDirectory)/tools/UpdateOpenApi.ps1'


- task: PowerShell@2
displayName: 'Download beta OpenApiDocs'
continueOnError: false
condition: and(succeeded(), eq(eq(variables['Build.SourceBranch'], 'refs/heads/master'), false))
inputs:
targetType: 'filePath'
pwsh: true
filePath: '$(System.DefaultWorkingDirectory)/tools/UpdateOpenApi.ps1'
arguments: >
-BetaGraphVersion

- task: PowerShell@2
displayName: "Configure User"
condition: and(succeeded(), eq(eq(variables['Build.SourceBranch'], 'refs/heads/master'), false))
inputs:
targetType: 'inline'
pwsh: true
script: |
git config --global user.email 'GraphTooling@service.microsoft.com'
git config --global user.name 'Microsoft Graph DevX Tooling'

- task: CmdLine@2
condition: and(succeeded(), eq(eq(variables['Build.SourceBranch'], 'refs/heads/master'), false))
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
inputs:
targetType: 'inline'
script: |
@echo off
ECHO SOURCE BRANCH IS %BUILD_SOURCEBRANCH%
IF %BUILD_SOURCEBRANCH% == refs/heads/master (
ECHO Building master branch so no merge is needed.
EXIT
)
SET sourceBranch=origin/%BUILD_SOURCEBRANCH:refs/heads/=%
git status
git checkout %sourceBranch%
git pull origin %sourceBranch%
git add -A
git commit -m "$(BUILDNUMBER): Release OpenApiDocs Download for $(BUILDNUMBER)[skip ci]"
git pull origin %sourceBranch%
git push --set-upstream origin %sourceBranch%
git push origin HEAD:%sourceBranch%
git merge %sourceBranch% -m "$(BUILDNUMBER): Release OpenApiDocs Download for $(BUILDNUMBER)[skip ci]"
git push origin %sourceBranch%
git status
33 changes: 33 additions & 0 deletions .azure-pipelines/downloadopenapidocs-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

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

pool:
vmImage: "windows-latest"

variables:
BRANCH: 'weeklyOpenApiDocsDownload'
GitUserEmail: 'GraphTooling@service.microsoft.com'
GitUserName: 'Microsoft Graph DevX Tooling'
BaseBranch: 'dev'

schedules:
- cron: "0 0 * * WED" # Run Every Wednesday
displayName: "Weekly OpenApiDocs Download and PR"
branches:
include:
- dev
always: true

stages:
- stage: DownloadOpenApiDocs
displayName: 'Download Open Api Docs from DevX API'
jobs:
- job: DownloadOpenAPiDocs
steps:
- template: ./download-openapidocs-template.yml
parameters:
GitUserEmail: $(GitUserEmail)
GitUserName: $(GitUserName)
BaseBranch: $(BaseBranch)
200 changes: 200 additions & 0 deletions .azure-pipelines/generate-auth-module-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

parameters:
- name: AUTH_MODULE_PATH
displayName: 'Authentication Module Path'
type: string
default: 'src\Authentication\Authentication\'
- name: AUTH_MODULE_NAME
displayName: 'Authentication Module Name'
type: string
default: 'Authentication'
- name: AUTH_MODULE_DLL_PATTERN
displayName: 'Authentication Module DLL Pattern'
type: string
default: 'Microsoft.Graph.Authentication.dll'
- name: Api_Key
displayName: 'Api Key'
type: string
- name: EnableSigning
displayName: 'Enable Signing'
type: boolean
default: false
- name: BUILDNUMBER
displayName: 'Build Number'
type: string
default: $[format('{0:yyMMddHH}', pipeline.startTime)]

jobs:
- job: MsGraphPSSDKAuthModuleGeneration
displayName: Microsoft Graph PowerShell SDK Auth Module Generation
pool: MsGraphDevXAzureAgents

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

- task: PowerShell@2
displayName: 'Generate and Build Auth Module'
inputs:
targetType: 'inline'
pwsh: true
script: |
Write-Host $(BUILDNUMBER)
pwsh $(System.DefaultWorkingDirectory)/tools/GenerateAuthenticationModule.ps1 -ArtifactsLocation $(Build.ArtifactStagingDirectory) -Build -ModulePreviewNumber $(BUILDNUMBER)

- task: DotNetCoreCLI@2
displayName: 'Run: Enabled Tests'
inputs:
command: 'test'
publishTestResults: true
projects: '$(System.DefaultWorkingDirectory)/src/Authentication/Authentication.Test/*.csproj'
testRunTitle: 'Run Enabled Tests'

- task: RoslynAnalyzers@2
inputs:
userProvideBuildInfo: 'msBuildInfo'
msBuildVersion: '16.0'
msBuildArchitecture: 'x64'
msBuildCommandline: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64\msbuild.exe" $(System.DefaultWorkingDirectory)//src//Authentication//Authentication.sln /nologo /nr:false /p:VisualStudioVersion="16.0"'

- task: CodeMetrics@1
displayName: 'Run CodeMetrics'
inputs:
Files: '$(System.DefaultWorkingDirectory)//**//*Microsoft.Graph*.dll;$(System.DefaultWorkingDirectory)//**//*Microsoft.Graph*.exe'
file: '$(System.DefaultWorkingDirectory)//**//*Microsoft.Graph*.dll;$(System.DefaultWorkingDirectory)//**//*Microsoft.Graph*.exe'
continueOnError: true

- task: PowerShell@2
displayName: 'Generate and Build Auth Module'
inputs:
targetType: 'inline'
pwsh: true
script: |
Write-Host $(BUILDNUMBER)
pwsh $(System.DefaultWorkingDirectory)/tools/GenerateAuthenticationModule.ps1 -ArtifactsLocation $(Build.ArtifactStagingDirectory) -Build -EnableSigning -ModulePreviewNumber $(BUILDNUMBER) -RepositoryName "LocalNugetFeed"

- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'ESRP DLL Strong Name (Graph Auth Module)'
enabled: true
inputs:
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet (AKV)'
FolderPath: $(AUTH_MODULE_PATH)
Pattern: $(AUTH_MODULE_DLL_PATTERN)
signConfigType: inlineSignParams
inlineOperation: |
[
{
"keyCode": "CP-233863-SN",
"operationSetCode": "StrongNameSign",
"parameters": [],
"toolName": "sign",
"toolVersion": "1.0"
},
{
"keyCode": "CP-233863-SN",
"operationSetCode": "StrongNameVerify",
"parameters": [],
"toolName": "sign",
"toolVersion": "1.0"
}
]
SessionTimeout: 20

- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'ESRP DLL CodeSigning (Graph Auth Module)'
enabled: true
inputs:
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet (AKV)'
FolderPath: $(AUTH_MODULE_PATH)
Pattern: $(AUTH_MODULE_DLL_PATTERN)
signConfigType: inlineSignParams
inlineOperation: |
[
{
"keyCode": "CP-230012",
"operationSetCode": "SigntoolSign",
"parameters": [
{
"parameterName": "OpusName",
"parameterValue": "Microsoft"
},
{
"parameterName": "OpusInfo",
"parameterValue": "http://www.microsoft.com"
},
{
"parameterName": "FileDigest",
"parameterValue": "/fd \"SHA256\""
},
{
"parameterName": "PageHash",
"parameterValue": "/NPH"
},
{
"parameterName": "TimeStamp",
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
}
],
"toolName": "sign",
"toolVersion": "1.0"
},
{
"keyCode": "CP-230012",
"operationSetCode": "SigntoolVerify",
"parameters": [],
"toolName": "sign",
"toolVersion": "1.0"
}
]
SessionTimeout: 20

- task: PowerShell@2
displayName: 'Pack Auth Module'
inputs:
targetType: 'inline'
pwsh: true
script: |
pwsh $(System.DefaultWorkingDirectory)/tools/PackModule.ps1 -Module $(AUTH_MODULE_NAME) -ArtifactsLocation $(Build.ArtifactStagingDirectory)

- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'ESRP NuGet CodeSigning'
enabled: true
inputs:
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet (AKV)'
FolderPath: '$(Build.ArtifactStagingDirectory)\$(AUTH_MODULE_NAME)'
Pattern: 'Microsoft.Graph.$(AUTH_MODULE_NAME)*.nupkg'
signConfigType: inlineSignParams
inlineOperation: |
[
{
"keyCode": "CP-401405",
"operationSetCode": "NuGetSign",
"parameters": [ ],
"toolName": "sign",
"toolVersion": "1.0"
},
{
"keyCode": "CP-401405",
"operationSetCode": "NuGetVerify",
"parameters": [ ],
"toolName": "sign",
"toolVersion": "1.0"
}
]
SessionTimeout: 20

- task: NuGetCommand@2
displayName: 'NuGet Publish To Local Build Feed'
inputs:
command: push
packagesToPush: '$(Build.ArtifactStagingDirectory)\$(AUTH_MODULE_NAME)\Microsoft.Graph.$(AUTH_MODULE_NAME)*.nupkg'
publishVstsFeed: '0985d294-5762-4bc2-a565-161ef349ca3e/edc337b9-e5ea-49dd-a2cb-e8d66668ca57'
allowPackageConflicts: true

- task: PublishBuildArtifacts@1
displayName: Publish Artifact Microsoft.Graph.Authentication.nupkg'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)/$(AUTH_MODULE_NAME)'
ArtifactName: 'drop'
publishLocation: 'Container'
8 changes: 4 additions & 4 deletions .azure-pipelines/generate-auth-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'ESRP DLL Strong Name (Graph Auth Module)'
inputs:
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet'
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet (AKV)'
FolderPath: $(MODULE_PATH)
Pattern: $(MODULE_DLL_PATTERN)
signConfigType: inlineSignParams
Expand All @@ -68,7 +68,7 @@ jobs:
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'ESRP DLL CodeSigning (Graph Auth Module)'
inputs:
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet'
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet (AKV)'
FolderPath: $(MODULE_PATH)
Pattern: $(MODULE_DLL_PATTERN)
signConfigType: inlineSignParams
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'ESRP NuGet CodeSigning'
inputs:
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet'
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet (AKV)'
FolderPath: '$(Build.ArtifactStagingDirectory)\$(MODULE_NAME)'
Pattern: 'Microsoft.Graph.$(MODULE_NAME)*.nupkg'
signConfigType: inlineSignParams
Expand Down Expand Up @@ -161,4 +161,4 @@ jobs:
title: '$(Build.DefinitionName) failure notification'
text: 'This pipeline has failed. View the build details for further information. This is a blocking failure. '
condition: and(failed(), ne(variables['Build.Reason'], 'Manual'))
enabled: true
enabled: true
Loading