VSTS Build和FTP - IP白名单 [英] VSTS Build and FTP - IP whitelist

查看:112
本文介绍了VSTS Build和FTP - IP白名单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已成功配置VSTS以构建我们的应用程序并将其FTP到我们的VPS。 但是我们的防火墙对FTP有IP限制,因此会阻止进程。

We have successfully configured VSTS to build our application and FTP it to our VPS.  However our firewall has IP restrictions for FTP and therefore blocks the process.

我们可以使用在尝试传输之前运行的命令来发现构建代理IP地址:

We can discover the build agents IP address using a command run just before the transfer is attempted:

卷曲'https://api.ipify.org?format=json'

curl 'https://api.ipify.org?format=json'

不幸的是,这种情况经常发生变化并且范围很广。 我可以看到已发布的Azure数据中心范围,但它们没有对齐。 即构建代理是来自40.71.30.192(即prd3.azuredns-cloud.net)的FTP。

Unfortunately this changes regularly and has very wide ranges.  I can see the Azure Datacentre ranges published but they don't align.  i.e. the build agent is FTPing from 40.71.30.192 (which is prd3.azuredns-cloud.net).

两个问题:


  1. VSTS Build代理IP地址范围在哪里发布或者如何提前有效地获取它们?
  2. 是否有一种解决方法,例如让构建代理在我们的服务器上请求服务从VSTS中提取构建的文件?

我之前已经看到过设置内部构建服务器的建议,但在我们的情况下这是不可行的。

I have seen previous suggestions to setup an internal build server but this is not feasible in our circumstances.

感谢您的时间。

推荐答案

关于#2,听起来您可能会感兴趣在服务挂钩(设置齿轮 - >项目页面的服务挂钩)。从构建定义中,您可以将文件作为工件发布到服务器,在构建完成
之后可以下载(参见内置的Publish Build Artifacts任务)。
Regarding #2 it sounds like you might be interested in service hooks (settings gear -> service hooks from project page). From a build definition you can publish files to the server as an artifact that are available for download after the build completes (see in-the-box Publish Build Artifacts task).


这篇关于VSTS Build和FTP - IP白名单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆