在我可以运行任何其他任务dist文件夹之前,似乎删除了在构建期间生成的文件夹。
trigger:
- master
pool: default
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm install -g @angular/cli
npm install
ng build --prod
displayName: 'npm install and build'
#i added this task and it seems like the node_modules and the dist
#folder that was generated during the build are not getting copied to the (a)directory
#only the source code get copied. it seems like the folders are getting
#deleted even before the #PublishPipelineArtifact@1 task ran
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Pipeline.Workspace)/s'
publishLocation: 'pipeline'
我也尝试在
中输出构建