Azure 自托管 Windows 代理挂钩
Azure Self-hosted Windows agent hook
在 Azure DevOps 中,我们创建并运行了管道和发布。在该版本中,我们拥有 Azure 自托管 Windows 代理 运行 并毫无问题地发布到异地服务器。
代理完成网站部署后,我们想 运行 自托管服务器上的脚本。 (示例 POST 挂钩命令 > C:\srvscripts\azure-post-hook.ps1)
网站发布后,在哪里可以将代理配置为运行脚本?
Where can configure the agent to run a script once the website is published?
如果您想在网站发布到自托管服务器后运行脚本,您可以在部署网站的任务之后添加一个 powershell 任务:
由于您运行在自托管服务器上安装脚本,我们可以直接指定脚本所在的路径C:\srvscripts\azure-post-hook.ps1
脚本路径选项:
在 Azure DevOps 中,我们创建并运行了管道和发布。在该版本中,我们拥有 Azure 自托管 Windows 代理 运行 并毫无问题地发布到异地服务器。
代理完成网站部署后,我们想 运行 自托管服务器上的脚本。 (示例 POST 挂钩命令 > C:\srvscripts\azure-post-hook.ps1)
网站发布后,在哪里可以将代理配置为运行脚本?
Where can configure the agent to run a script once the website is published?
如果您想在网站发布到自托管服务器后运行脚本,您可以在部署网站的任务之后添加一个 powershell 任务:
由于您运行在自托管服务器上安装脚本,我们可以直接指定脚本所在的路径C:\srvscripts\azure-post-hook.ps1
脚本路径选项: