Visual Studio Team Services - 从 Publish Build Artifacts 到 scp 输出的 cURLUploader

Visual Studio Team Services - cURLUploader to scp output from Publish Build Artifacts

我想使用 "Publish Build Artifacts"(工件类型 "server")任务来压缩我的构建输出,然后 scp 使用 cURLUploader 将 zip 文件压缩到我的部署主机。

我似乎无法弄清楚如何获取 zip 文件的路径以进入 cURLUploader。有没有更好的压缩构建输出的方法?

您可以安装 Zip and unzip directory build task 并使用它来压缩您的构建输出。将在与您要压缩的文件夹相同的路径中生成 Zip 文件。

A set of Build tasks for TFS 2015 and Visual Studio Team Services that enables you to Zip and Unzip a directories.