How do I exclude the .cs files within an artifact from a vs-team-services CI build?

谁说我不能喝 提交于 2020-01-16 04:37:08

问题


I'm new to vs-team services, right now I have a CI build setup that will have a copy publish artifact step to upload the artifact to the vsts server.

And there is an option for me to filter out the Contents of the artifact, which I've put in the path relative to the root because under my repository I have multiple projects, and this build is only targeting one of them.

Now my question is, the artifact is being published, but it includes everything under that path, meaning all the .cs files that i don't want to publish. Is there a way to exclude those? Or should the artifact include those at all?

Thanks.


回答1:


The "Contents" of "Copy Files" & "Copy Publish Artifacts" task support multiple lines of minimatch patterns. You can use it to exclude the files you don't want to publish.

For example, the pdb and config files will not be included with following settings:

 ConsoleApplication1\**\bin\**\!(*.pdb|*.config)

For detailed information, please refer to this link for details: Copy executables and a readme file



来源:https://stackoverflow.com/questions/37060809/how-do-i-exclude-the-cs-files-within-an-artifact-from-a-vs-team-services-ci-bui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!