VSTS“发布工件"Powershell脚本 [英] VSTS "Publish Artifact" powershell script
本文介绍了VSTS“发布工件"Powershell脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前正在将发布工件"任务作为我的VSTS构建的一部分,一切正常.
I'm currently using the "Publish Artifact" task as part of my VSTS build, this all works fine.
我现在想做此任务的自定义版本,因为我想有选择地选择发布哪些工件.有人可以告诉我某个地方是否有Powershell脚本来执行发布工件"任务的实际作用?这样我就可以在构建定义中修改和使用脚本.
I would now like to do a custom version of the this task as I would like to selectively choose which artifacts are published. Can someone tell me if there is a powershell script somewhere that does what the "Publish Artifact" task actually does? Such that I could modify and use the script within my build definition.
推荐答案
应该无需进行任何修改即可实现所需的功能.
There should be no need to modify anything to achieve what you want.
- 您可以通过PowerShell脚本来操纵文件系统以适应您的内心需求,以便安排您要发布的文件夹的方式
- 您可以使用多个 Publish Artifacts 任务来发布不同的工件集
- 您可以使用条件规则
- You can manipulate the file system to your heart's content via PowerShell scripts in order to arrange the folder you want to publish how you'd like
- You can use multiple Publish Artifacts tasks to publish different sets of artifacts
- You can control the conditions under which a given task runs with conditional rules
这篇关于VSTS“发布工件"Powershell脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文