@@ -184,11 +184,11 @@ thing we'll do is to create the build pipeline.
184
184
![ ] ( ./images/image9.png )
185
185
186
186
187
- \ > Every build pipeline is simply a set of tasks. Whether it's copying files, compiling source, or publishing
187
+ > Every build pipeline is simply a set of tasks. Whether it's copying files, compiling source, or publishing
188
188
artifacts, the existing library of tasks covers the vast majority of scenarios. You can even create your own if you have specialized
189
- needs not already covered. We're going to use YAML, a markup syntax that lends itself well to describing the build pipeline. Note that
190
- the Node.js pipeline as a starting point based on an analysis of our source project. We'll replace the contents with the final YAML
191
- required for our project.
189
+ needs not already covered. We're going to use YAML, a markup syntax that lends itself well to describing the build pipeline. Note
190
+ that the Node.js pipeline as a starting point based on an analysis of our source project. We'll replace the contents with the final
191
+ YAML required for our project.
192
192
193
193
3 . Select the recommended template.
194
194
@@ -198,57 +198,37 @@ thing we'll do is to create the build pipeline.
198
198
199
199
```` yaml
200
200
201
- 1. resources :
202
-
203
- \- repo : self
204
-
201
+ resources :
202
+ - repo : self
205
203
queue :
206
-
207
204
name : Hosted VS2017
208
-
209
205
demands : npm
210
206
211
- steps :
212
-
213
- \- task : CopyFiles\@2
214
-
215
- displayName : \'Copy Files to:
216
- \$(build.artifactstagingdirectory)/Templates\'
217
-
207
+ steps :
208
+ - task : CopyFiles@2
209
+ displayName : ' Copy Files to:
210
+ $(build.artifactstagingdirectory)/Templates'
218
211
inputs :
212
+ SourceFolder : deployment
213
+ Contents : ' *.json'
214
+ TargetFolder : ' $(build.artifactstagingdirectory)/Templates'
219
215
220
- SourceFolder : deployment
221
-
222
- Contents : \'\*.json\'
223
-
224
- TargetFolder : \'\$(build.artifactstagingdirectory)/Templates\'
225
-
226
- \- task : Npm\@1
227
-
228
- displayName : \'npm custom\'
229
-
216
+ - task : Npm@1
217
+ displayName : ' npm custom'
230
218
inputs :
219
+ command : custom
220
+ verbose : false
221
+ customCommand : ' install --production'
231
222
232
- command : custom
233
-
234
- verbose : false
235
-
236
- customCommand : \'install \--production\'
237
-
238
- \- task : ArchiveFiles\@2
239
-
240
- displayName : \'Archive \$(Build.SourcesDirectory)\'
241
-
223
+ - task : ArchiveFiles@2
224
+ displayName : ' Archive $(Build.SourcesDirectory)'
242
225
inputs :
226
+ rootFolderOrFile : ' $(Build.SourcesDirectory)'
227
+ includeRootFolder : false
243
228
244
- rootFolderOrFile : \'\$(Build.SourcesDirectory)\'
245
-
246
- includeRootFolder : false
247
-
248
- \- task : PublishBuildArtifacts\@1
249
-
250
- displayName : \'Publish Artifact: drop\'
251
-
229
+ - task : PublishBuildArtifacts\@1
230
+ displayName : ' Publish Artifact: drop'
231
+
252
232
` ` ` `
253
233
254
234
5. Click **Save and run**.
0 commit comments