Skip to content

Commit 0e80570

Browse files
committed
Update pipeline-ci.yaml for Azure Pipelines
First version, placeholder values set for pool but need permission
1 parent 79de40f commit 0e80570

File tree

1 file changed

+193
-20
lines changed

1 file changed

+193
-20
lines changed

build/pipeline-ci.yaml

Lines changed: 193 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,193 @@
1-
# CI builds should be triggered on the main branch only
2-
trigger:
3-
branches:
4-
include:
5-
- 'main'
6-
7-
pr: none
8-
9-
variables:
10-
BuildPlatform: 'any cpu'
11-
BuildConfiguration: 'Release'
12-
#intended for running all ui automation tests as one to reduce time
13-
ConsolidateAppCenterTests: true
14-
15-
#BUILD PHASE
16-
17-
stages:
18-
- stage: MSALBuildAndTest
19-
jobs: #Build and stage projects
20-
- template: template-build-and-run-all-tests.yaml
1+
# This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool.
2+
# Please make sure to check all the converted content, it is your team's responsibility to make sure that the pipeline is still valid and functions as expected.
3+
# This pipeline will be extended to the OneESPT template
4+
# The pool section has been filled with placeholder values, check the following link for guidance: https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/onboardingesteams/overview, replace the pool section with your hosted pool, os, and image name. If you are using a Linux image, you must specify an additional windows image for SDL: https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/sdlanalysis/overview#how-to-specify-a-windows-pool-for-the-sdl-source-analysis-stage
5+
# The 'DownloadPipelineArtifact@2' tasks have been converted to inputs within the `templateContext` section of each job.
6+
# The Task 'NuGetCommand@2' has been converted to a wrapper task named 'NuGet Push MSAL'.
7+
# The Task 'NuGetCommand@2' has been converted to a wrapper task named 'NuGet Push MSAL.Desktop'.
8+
# The Task 'NuGetCommand@2' has been converted to a wrapper task named 'NuGet Push MSAL.Broker'.
9+
# The Task 'NuGetCommand@2' has been converted to a wrapper task named 'NuGet Push MSAL Extension'.
10+
# The Task 'NuGetCommand@2' has been converted to a wrapper task named 'NuGet Push MSAL'.
11+
# The Task 'NuGetCommand@2' has been converted to a wrapper task named 'NuGet Push MSAL.Client Symbol'.
12+
# The Task 'NuGetCommand@2' has been converted to a wrapper task named 'NuGet Push MSAL Desktop'.
13+
# The Task 'NuGetCommand@2' has been converted to a wrapper task named 'NuGet Push MSAL Desktop Symbol'.
14+
# The Task 'NuGetCommand@2' has been converted to a wrapper task named 'NuGet Push MSAL Desktop Broker'.
15+
# The Task 'NuGetCommand@2' has been converted to a wrapper task named 'NuGet Push MSAL Desktop Broker Symbol'.
16+
# The Task 'NuGetCommand@2' has been converted to a wrapper task named 'NuGet Push MSAL Extension'.
17+
# The Task 'NuGetCommand@2' has been converted to a wrapper task named 'NuGet Push MSAL Extension Symbol'.
18+
trigger: none
19+
name: $(Date:yyyyMMdd).$(Rev:r)
20+
resources:
21+
pipelines:
22+
- pipeline: '_MSALNET-OneBranch-Release-Official'
23+
project: 'IDDP'
24+
source: 'MSAL.NET-OneBranch-Release-Official'
25+
repositories:
26+
- repository: 1ESPipelineTemplates
27+
type: git
28+
name: 1ESPipelineTemplates/1ESPipelineTemplates
29+
ref: refs/tags/release
30+
extends:
31+
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
32+
parameters:
33+
pool:
34+
name: Azure-Pipelines-1ESPT-ExDShared
35+
image: windows-latest
36+
os: windows
37+
customBuildTags:
38+
- ES365AIMigrationTooling-BulkMigrated-Release
39+
stages:
40+
- stage: Stage_1
41+
displayName: Upload to Nuget
42+
jobs:
43+
- job: PreDeploymentApprovalJob
44+
displayName: Pre-Deployment Approval
45+
condition: succeeded()
46+
timeoutInMinutes: 43200
47+
pool: server
48+
steps:
49+
- task: ManualValidation@1
50+
inputs:
51+
notifyUsers: |-
52+
53+
approvers: |-
54+
55+
- job: Job_1
56+
displayName: Agentless Job - Approval Service
57+
dependsOn: PreDeploymentApprovalJob
58+
condition: succeeded()
59+
timeoutInMinutes: 7200
60+
pool: server
61+
- job: Job_2
62+
displayName: Agent Job
63+
condition: succeeded()
64+
timeoutInMinutes: 0
65+
templateContext:
66+
inputs:
67+
- input: pipelineArtifact
68+
pipeline: '_MSALNET-OneBranch-Release-Official'
69+
artifactName: 'drop_build_main'
70+
targetPath: '$(Pipeline.Workspace)/drop_build_main'
71+
- input: pipelineArtifact
72+
pipeline: '_MSALNET-OneBranch-Release-Official'
73+
artifactName: 'drop_build_main_signingLogs1'
74+
targetPath: '$(Pipeline.Workspace)/drop_build_main_signingLogs1'
75+
steps:
76+
- task: NuGetToolInstaller@1
77+
displayName: Use NuGet >=5.x
78+
inputs:
79+
versionSpec: '>=5.x'
80+
- task: 1ES.PublishNuGet@1
81+
displayName: 'NuGet Push MSAL'
82+
inputs:
83+
packageParentPath: '$(Build.ArtifactStagingDirectory)'
84+
packagesToPush: $(System.ArtifactsDirectory)/**/Microsoft.Identity.Client.?.*.*.nupkg
85+
nuGetFeedType: external
86+
feedPublish: NuGetMsal_NET2
87+
externalEndpoint: NuGetMsal_NET2
88+
- task: 1ES.PublishNuGet@1
89+
displayName: 'NuGet Push MSAL.Desktop'
90+
inputs:
91+
packageParentPath: '$(Build.ArtifactStagingDirectory)'
92+
solution: $(System.ArtifactsDirectory)/**/Microsoft.Identity.Client.Desktop.?.*.*.nupkg
93+
packagesToPush: $(System.ArtifactsDirectory)/**/Microsoft.Identity.Client.Desktop.?.*.*.nupkg
94+
nuGetFeedType: external
95+
externalEndpoint: NuGetMsal_NET2
96+
- task: 1ES.PublishNuGet@1
97+
displayName: 'NuGet Push MSAL.Broker'
98+
inputs:
99+
packageParentPath: '$(Build.ArtifactStagingDirectory)'
100+
packagesToPush: $(System.ArtifactsDirectory)/**/Microsoft.Identity.Client.Broker.?.*.*.nupkg
101+
nuGetFeedType: external
102+
externalEndpoint: NuGetMsal_NET2
103+
- task: 1ES.PublishNuGet@1
104+
displayName: 'NuGet Push MSAL Extension'
105+
inputs:
106+
packageParentPath: '$(Build.ArtifactStagingDirectory)'
107+
packagesToPush: $(System.ArtifactsDirectory)/**/Microsoft.Identity.Client.Extensions.Msal.?.*.*.nupkg
108+
nuGetFeedType: external
109+
feedPublish: NuGetMsal_NET2
110+
externalEndpoint: NuGetMsal_NET2
111+
- stage: Stage_2
112+
displayName: Upload to IDDP (VSTS)
113+
jobs:
114+
- job: PreDeploymentApprovalJob
115+
displayName: Pre-Deployment Approval
116+
condition: succeeded()
117+
timeoutInMinutes: 0
118+
pool: server
119+
steps:
120+
- task: ManualValidation@1
121+
inputs:
122+
notifyUsers: |-
123+
124+
approvers: |-
125+
126+
- job: Job_1
127+
displayName: Agent job
128+
dependsOn: PreDeploymentApprovalJob
129+
condition: succeeded()
130+
timeoutInMinutes: 0
131+
templateContext:
132+
inputs:
133+
- input: pipelineArtifact
134+
pipeline: '_MSALNET-OneBranch-Release-Official'
135+
artifactName: 'drop_build_main'
136+
targetPath: '$(Pipeline.Workspace)/drop_build_main'
137+
- input: pipelineArtifact
138+
pipeline: '_MSALNET-OneBranch-Release-Official'
139+
artifactName: 'drop_build_main_signingLogs1'
140+
targetPath: '$(Pipeline.Workspace)/drop_build_main_signingLogs1'
141+
steps:
142+
- task: NuGetToolInstaller@1
143+
displayName: Use NuGet >=5.x
144+
inputs:
145+
versionSpec: '>=5.x'
146+
- task: 1ES.PublishNuGet@1
147+
displayName: 'NuGet Push MSAL'
148+
inputs:
149+
packageParentPath: '$(Build.ArtifactStagingDirectory)'
150+
packagesToPush: $(System.ArtifactsDirectory)/**/Microsoft.Identity.Client.?.*.*.nupkg
151+
feedPublish: 46419298-b96c-437f-bd4c-12c8df7f868d
152+
- task: 1ES.PublishNuGet@1
153+
displayName: 'NuGet Push MSAL.Client Symbol'
154+
inputs:
155+
packageParentPath: '$(Build.ArtifactStagingDirectory)'
156+
packagesToPush: $(System.ArtifactsDirectory)/**/Microsoft.Identity.Client.?.*.*.snupkg
157+
feedPublish: 46419298-b96c-437f-bd4c-12c8df7f868d
158+
- task: 1ES.PublishNuGet@1
159+
displayName: 'NuGet Push MSAL Desktop'
160+
inputs:
161+
packageParentPath: '$(Build.ArtifactStagingDirectory)'
162+
packagesToPush: $(System.ArtifactsDirectory)/**/Microsoft.Identity.Client.Desktop.?.*.*.nupkg
163+
feedPublish: 46419298-b96c-437f-bd4c-12c8df7f868d
164+
- task: 1ES.PublishNuGet@1
165+
displayName: 'NuGet Push MSAL Desktop Symbol'
166+
inputs:
167+
packageParentPath: '$(Build.ArtifactStagingDirectory)'
168+
packagesToPush: $(System.ArtifactsDirectory)/**/Microsoft.Identity.Client.Desktop.?.*.*.snupkg
169+
feedPublish: 46419298-b96c-437f-bd4c-12c8df7f868d
170+
- task: 1ES.PublishNuGet@1
171+
displayName: 'NuGet Push MSAL Desktop Broker'
172+
inputs:
173+
packageParentPath: '$(Build.ArtifactStagingDirectory)'
174+
packagesToPush: $(System.ArtifactsDirectory)/**/Microsoft.Identity.Client.Broker.?.*.*.nupkg
175+
feedPublish: 46419298-b96c-437f-bd4c-12c8df7f868d
176+
- task: 1ES.PublishNuGet@1
177+
displayName: 'NuGet Push MSAL Desktop Broker Symbol'
178+
inputs:
179+
packageParentPath: '$(Build.ArtifactStagingDirectory)'
180+
packagesToPush: $(System.ArtifactsDirectory)/**/Microsoft.Identity.Client.Broker.?.*.*.snupkg
181+
feedPublish: 46419298-b96c-437f-bd4c-12c8df7f868d
182+
- task: 1ES.PublishNuGet@1
183+
displayName: 'NuGet Push MSAL Extension'
184+
inputs:
185+
packageParentPath: '$(Build.ArtifactStagingDirectory)'
186+
packagesToPush: $(System.ArtifactsDirectory)/**/Microsoft.Identity.Client.Extensions.Msal.?.*.*.nupkg
187+
feedPublish: 46419298-b96c-437f-bd4c-12c8df7f868d
188+
- task: 1ES.PublishNuGet@1
189+
displayName: 'NuGet Push MSAL Extension Symbol'
190+
inputs:
191+
packageParentPath: '$(Build.ArtifactStagingDirectory)'
192+
packagesToPush: $(System.ArtifactsDirectory)/**/Microsoft.Identity.Client.Extensions.Msal.?.*.*.snupkg
193+
feedPublish: 46419298-b96c-437f-bd4c-12c8df7f868d

0 commit comments

Comments
 (0)