我有一个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
更多推荐
发布评论