Skip to content

Commit 1fc0ac8

Browse files
authored
Cleanup YAML
1 parent 6f5e26c commit 1fc0ac8

File tree

1 file changed

+25
-45
lines changed

1 file changed

+25
-45
lines changed

readme.md

Lines changed: 25 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ thing we'll do is to create the build pipeline.
184184
![](./images/image9.png)
185185

186186

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
188188
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.
192192

193193
3. Select the recommended template.
194194

@@ -198,57 +198,37 @@ thing we'll do is to create the build pipeline.
198198

199199
````yaml
200200

201-
1. resources:
202-
203-
\- repo: self
204-
201+
resources:
202+
- repo: self
205203
queue:
206-
207204
name: Hosted VS2017
208-
209205
demands: npm
210206

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'
218211
inputs:
212+
SourceFolder: deployment
213+
Contents: '*.json'
214+
TargetFolder: '$(build.artifactstagingdirectory)/Templates'
219215

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'
230218
inputs:
219+
command: custom
220+
verbose: false
221+
customCommand: 'install --production'
231222

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)'
242225
inputs:
226+
rootFolderOrFile: '$(Build.SourcesDirectory)'
227+
includeRootFolder: false
243228

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+
252232
````
253233

254234
5. Click **Save and run**.

0 commit comments

Comments
 (0)