Skip to content

Commit 824ded5

Browse files
authored
Merge pull request #74 from microsoftgraph/dev
Sync Dev to Master
2 parents c27c2bb + d6d4bab commit 824ded5

7,212 files changed

Lines changed: 943073 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
4+
# Generates a release build artifact (nuget) from HEAD of master for auth module.
5+
name: $(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
6+
trigger:
7+
branches:
8+
include:
9+
- master
10+
paths:
11+
include:
12+
- src/Authentication/*
13+
pr: none
14+
variables:
15+
MODULE_NAME: 'Authentication'
16+
MODULE_PATH: 'src\Authentication\Authentication\'
17+
MODULE_DLL_PATTERN: 'Microsoft.Graph.Authentication.dll'
18+
19+
jobs:
20+
- job: MSGraphPSSDKGeneration
21+
displayName: MS Graph PS SDK Auth Generation
22+
timeoutInMinutes: 300
23+
pool:
24+
name: Microsoft Graph
25+
demands: 'Agent.Name -equals Local-Agent'
26+
27+
steps:
28+
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
29+
displayName: 'Run CredScan'
30+
inputs:
31+
debugMode: false
32+
33+
- task: PowerShell@2
34+
displayName: 'Generate and Build Auth Module'
35+
inputs:
36+
filePath: '$(System.DefaultWorkingDirectory)/tools/GenerateAuthenticationModule.ps1'
37+
arguments: '-RepositoryName $(Repository_Name) -RepositoryApiKey $(Api_Key) -ModuleVersion $(Module_Version) -ArtifactsLocation $(Build.ArtifactStagingDirectory) -Build -EnableSigning'
38+
pwsh: true
39+
40+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
41+
displayName: 'ESRP DLL Strong Name (Graph Auth Module)'
42+
inputs:
43+
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet'
44+
FolderPath: $(MODULE_PATH)
45+
Pattern: $(MODULE_DLL_PATTERN)
46+
signConfigType: inlineSignParams
47+
inlineOperation: |
48+
[
49+
{
50+
"keyCode": "CP-233863-SN",
51+
"operationSetCode": "StrongNameSign",
52+
"parameters": [],
53+
"toolName": "sign",
54+
"toolVersion": "1.0"
55+
},
56+
{
57+
"keyCode": "CP-233863-SN",
58+
"operationSetCode": "StrongNameVerify",
59+
"parameters": [],
60+
"toolName": "sign",
61+
"toolVersion": "1.0"
62+
}
63+
]
64+
SessionTimeout: 20
65+
66+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
67+
displayName: 'ESRP DLL CodeSigning (Graph Auth Module)'
68+
inputs:
69+
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet'
70+
FolderPath: $(MODULE_PATH)
71+
Pattern: $(MODULE_DLL_PATTERN)
72+
signConfigType: inlineSignParams
73+
inlineOperation: |
74+
[
75+
{
76+
"keyCode": "CP-230012",
77+
"operationSetCode": "SigntoolSign",
78+
"parameters": [
79+
{
80+
"parameterName": "OpusName",
81+
"parameterValue": "Microsoft"
82+
},
83+
{
84+
"parameterName": "OpusInfo",
85+
"parameterValue": "http://www.microsoft.com"
86+
},
87+
{
88+
"parameterName": "FileDigest",
89+
"parameterValue": "/fd \"SHA256\""
90+
},
91+
{
92+
"parameterName": "PageHash",
93+
"parameterValue": "/NPH"
94+
},
95+
{
96+
"parameterName": "TimeStamp",
97+
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
98+
}
99+
],
100+
"toolName": "sign",
101+
"toolVersion": "1.0"
102+
},
103+
{
104+
"keyCode": "CP-230012",
105+
"operationSetCode": "SigntoolVerify",
106+
"parameters": [],
107+
"toolName": "sign",
108+
"toolVersion": "1.0"
109+
}
110+
]
111+
SessionTimeout: 20
112+
113+
- task: PowerShell@2
114+
displayName: 'Pack Auth Module'
115+
inputs:
116+
targetType: 'inline'
117+
script: |
118+
& $(System.DefaultWorkingDirectory)/tools/PackModule.ps1 -Module $(MODULE_NAME) -ArtifactsLocation $(Build.ArtifactStagingDirectory)
119+
pwsh: true
120+
121+
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
122+
displayName: 'ESRP NuGet CodeSigning'
123+
inputs:
124+
ConnectedServiceName: 'microsoftgraph ESRP CodeSign DLL and NuGet'
125+
FolderPath: '$(Build.ArtifactStagingDirectory)\$(MODULE_NAME)'
126+
Pattern: 'Microsoft.Graph.$(MODULE_NAME)*.nupkg'
127+
signConfigType: inlineSignParams
128+
inlineOperation: |
129+
[
130+
{
131+
"keyCode": "CP-401405",
132+
"operationSetCode": "NuGetSign",
133+
"parameters": [ ],
134+
"toolName": "sign",
135+
"toolVersion": "1.0"
136+
},
137+
{
138+
"keyCode": "CP-401405",
139+
"operationSetCode": "NuGetVerify",
140+
"parameters": [ ],
141+
"toolName": "sign",
142+
"toolVersion": "1.0"
143+
}
144+
]
145+
SessionTimeout: 20
146+
147+
- task: PublishBuildArtifacts@1
148+
displayName: Publish Artifact Microsoft.Graph.Authentication.nupkg'
149+
inputs:
150+
PathtoPublish: '$(Build.ArtifactStagingDirectory)/$(MODULE_NAME)'
151+
ArtifactName: 'drop'
152+
publishLocation: 'Container'
153+
154+
- task: YodLabs.O365PostMessage.O365PostMessageBuild.O365PostMessageBuild@0
155+
displayName: 'Graph Client Tooling pipeline fail notification'
156+
inputs:
157+
addressType: serviceEndpoint
158+
serviceEndpointName: 'microsoftgraph pipeline status'
159+
title: '$(Build.DefinitionName) failure notification'
160+
text: 'This pipeline has failed. View the build details for further information. This is a blocking failure. '
161+
condition: and(failed(), ne(variables['Build.Reason'], 'Manual'))
162+
enabled: true

0 commit comments

Comments
 (0)