为什么azure构建管道无法为有角度的构建生成dist文件夹

时间:2020-07-30 14:45:35

标签: azure-devops azure-pipelines azure-yaml-pipelines

在我可以运行任何其他任务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'

我也尝试在

中输出构建

0 个答案:

没有答案