Azure DevOps-获取代理IP地址

发布于 2025-01-26 02:38:39 字数 206 浏览 2 评论 0原文

我有一个Azure DevOps管道,该管道运行2个作业 - 一个在运行服务器的Windows代理上,另一个在Linux代理上运行连接到服务器的客户端。这些作业并行运行。当前,IP地址和端口在客户端仓库上进行了硬编码。但是我想解开这种情况。 Azure Devops管道中是否有办法将Agent IP进入第一个作业,将其存储在变量中并将其用作第二个作业的一步?

非常感谢您的所有帮助。

I have a azure devops pipeline that runs 2 jobs - one on windows agent running a server, the other on Linux agent - running a client that connects to the server. These jobs run in parallel. Currently ip address and port are hard coded on client side repo. But I want to decouple this situation.
is there a way in azure devops pipeline to get agent ip in the first job, store it in variable and use it as parameter to a step in the second job?

thanks a lot for all the help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文