VSTS在另一台机器上构建代理,而不是jenkins(VSTS build agent on another machine than jenkins)

编程入门 行业动态 更新时间:2024-10-28 17:23:29
VSTS在另一台机器上构建代理,而不是jenkins(VSTS build agent on another machine than jenkins)

我有一个GIT作为SCM的VSTS项目。

我有配置了VSTS代理的内部部署生成机器(称为server1)。

我在另一台内部机器上安装了jenkins服务器(称server2)。

获取源在server1上完成。 然后,我使用“Queue Jenkins Job”任务来触发带有jenkins项目名称的构建(项目在jenkins服务器上配置,或许很糟糕)。

但是,源代码如何从server1移动到server2? 我的詹金斯工作怎么知道在哪里找到要构建的源代码?

I have a VSTS project with GIT as SCM.

I have an on-premise build machine with the VSTS agent configured (says server1).

I have a jenkins server on another on-premise machine (says server2).

The get sources is done on server1. I then use the "Queue Jenkins Job" task to trigger a build with the jenkins project name (project is configured on jenkins server, maybe badly).

But how can the source code moves from server1 to server2 ? How can my jenkins job knows where to find the source code to build ?

最满意答案

您应该使用Team Foundation Server插件在Jenkins构建工具中获取源代码。

如果您需要在不同服务器上使用源文件,则可以从远程服务器复制文件。 一些相关的主题:

如何将文件从SSH远程主机复制到Jenkins Server

如何将文件从远程主机复制到jenkins服务器

You should get the source during Jenkins build tool by using Team Foundation Server Plugin.

If you need to use source files on different server, you can copy files from remote server. Some related threads:

How to copy file from SSH remote host to Jenkins Server

How to copy file from remote host to jenkins server

更多推荐

本文发布于:2023-08-02 08:34:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1372179.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:而不是   另一台   机器上   VSTS   machine

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!