I have a publish build artifact step and then a copy step to place my UI compiled contents into the generated folder. Although the copy step succeeds and I can see in the logs that it copied my required content to the specified folder inside drop, those files are not present when I download the artifacts at the end of the build process.
Am I missing some relative path here? Are my files getting copied to a folder which is not part of the final artifacts? below are my last two tasks in yaml
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
- task: CopyFiles@2
inputs:
SourceFolder: 'my-ui\dist\wwwroot\assets'
Contents: '**'
TargetFolder: 'drop\MyProj\wwwroot\assets'
OverWrite: true
CleanTargetFolder: true