Advertisement
Guest User

Untitled

a guest
Mar 13th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. pool:
  2. vmImage: Hosted VS2017
  3. demands: npm
  4.  
  5. steps:
  6. - script: |
  7. echo Write your commands here
  8.  
  9. mkdir dist
  10.  
  11. echo Use the environment variables input below to pass secret variables to this script
  12. displayName: 'Command - mkdir dist'
  13.  
  14. - task: Npm@1
  15. displayName: 'npm install'
  16. inputs:
  17. verbose: false
  18.  
  19. - task: Npm@1
  20. displayName: 'npm build'
  21. inputs:
  22. command: custom
  23. verbose: false
  24. customCommand: 'build --prod'
  25.  
  26. - task: PublishBuildArtifacts@1
  27. displayName: 'Publish Artifact: dist'
  28. inputs:
  29. PathtoPublish: dist
  30. ArtifactName: dist
  31.  
  32. - task: FtpUpload@1
  33. displayName: 'FTP Upload: dist'
  34. inputs:
  35. credentialsOption: inputs
  36. serverUrl: ‘xxx’
  37. username: Tester2
  38. password: 'Tester$2'
  39. rootDirectory: dist
  40. filePatterns: '*'
  41. remoteDirectory: /
  42. trustSSL: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement