Teamcity 构建代理 VCS 结帐模式,它说无法连接到 X 服务器 [英] Teamcity build agent VCS checkout mode , it says cannot connect to the X server

查看:82
本文介绍了Teamcity 构建代理 VCS 结帐模式,它说无法连接到 X 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的团队中,当我从服务器使用 VCS 结帐模式时,它工作正常

In my teamcity it is working fine When I use the VCS checkout mode from the server

但是当我使用构建代理时,它在我运行构建时不起作用,它说(失败

But when I use the build agent it is not working when I run a build it says (failed in

应用补丁后显示无法连接到 X 服务器).我的构建代理是一个

applying the patch and it says Cannot connect to the X server) . My build agent is a

Linux 机器.我在这里运行我的构建代理.我配置了生成代理以生成

Linux machine . Here I run my build agent . I configured build agent for generating the

运行良好的战争文件.但是我在teamcity选择VCS签出模式

War files which is working fine . But I choose to VCS check out mode at the teamcity

版本控制设置并运行构建我收到此错误(无法连接到

Version Control settings and run the build I am getting this error (Cannot connect to the

p4 (perforce) :bin X 服务器)

p4 (perforce) :bin X server)

到目前为止我的尝试:我配置了 P4 命令行客户端,当我

What I tried so far : I configured the P4 command line client which is running fine when I

说 p4 .它能够认出它.但是当我从 teamcity 执行此操作时,我得到了这个

say p4 . It is able to recognize it . But when I do it from the teamcity I get this

错误提示(无法连接到 p4:bin x 服务器).我是 teamcity 和 perforce 的新手

Error saying (cannot connect to the p4: bin x server) . I am new to teamcity and perforce

我是否遗漏了在构建代理上配置 p4 所需的任何步骤?任何人都可以

Am I missing any steps that require for the configuring p4 at the build agent ? Can anyone

如果是,请提及配置所需的步骤?

mention the steps that are require to configure if so ?

推荐答案

我自己解决了 :P

简单的事情,请确保您的 p4 在 usr/local/bin 中并尝试使用

Simple thing ,Make sure your p4 is in usr/local/bin and try running with

-> p4 -u 共享 -p 客户端:端口用户 |更多

-> p4 -u shared -p client:port users | more

上面的命令应该从 perforce 服务器中获取所有用户

The above command should fetch you all the users from the perforce server

这篇关于Teamcity 构建代理 VCS 结帐模式,它说无法连接到 X 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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