问题
It seem like the folder that are getting generated during the build are getting deleted before I could ran any other task dist folder.
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'
I also trying outputting the build in the
来源:https://stackoverflow.com/questions/63175655/why-is-azure-build-pipeline-not-generating-a-dist-folder-for-an-angular-build