Perforce Jenkins视图映射 [英] Perforce Jenkins view mapping

查看:358
本文介绍了Perforce Jenkins视图映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了很多时间在P4 Jenkins插件上,但未能使其正常工作.

I have spent quite some time on P4 Jenkins plugin but have not been able to get it to work.

下面的我的本地根目录,这也是我的工作区根目录 /home/abigail/p4/projects.我的工作区名称是admin_linux.

My local root directory below, which is also my workspace root directory /home/abigail/p4/projects. My workspace name is admin_linux.

请查看我遭到攻击的P4& P4 Jenkins插件快照.我怀疑我的工作区映射//depot/...//admin_linux/...可能不太正确.

Please see my attacked P4 & P4 Jenkins plugins snapshots. I suspect my workspace mapping //depot/... //admin_linux/... may not be quite right.

在詹金斯尝试立即构建"后,我遇到了这个问题:

After I try "build now" in Jenkins, I got this problem:

    Started by user gvisa
Building in workspace /var/lib/jenkins/jobs/bword/workspace
... p4 client -o admin_linux +

P4 Task: establishing connection.
... server: x.x.x.x:1666
... node: Jenkins
... p4 info +
... p4 client -o admin_linux +
... p4 client -i +
... client: admin_linux
... p4 client -o admin_linux +
... p4 counter change +
... p4 changes -m1 //admin_linux/... +
Building on Node: master
... p4 client -o admin_linux +

P4 Task: establishing connection.
... server: x.x.x.x.:1666
... node: Jenkins

P4 Task: reverting all pending and shelved revisions.
... p4 revert /var/lib/jenkins/jobs/bword/workspace/... +
... rm [abandoned files]
duration: (22ms)

P4 Task: cleaning workspace to match have list.
... p4 reconcile -w -f /var/lib/jenkins/jobs/bword/workspace/... +
duration: (66ms)

P4 Task: syncing files at change: 26
... p4 sync -q /var/lib/jenkins/jobs/bword/workspace/...@26 +
duration: (14ms)

P4 Task: saving built changes.
... p4 client -o admin_linux +
... p4 changes -m100 //admin_linux/...@25,26 +
... p4 change -o 26 +
... p4 change -o 26 +
... p4 describe -s 26 +
... p4 fixes -c26 +
... done

Parsing POMs
ERROR: No such file /var/lib/jenkins/jobs/bword/workspace/pom.xml
Perhaps you need to specify the correct POM file path in the project configuration?
Finished: FAILURE

我可以看到为什么找不到pom.xml,因为pom.xml是...工作区/admin_linux/bword.但是如何解决呢?

I can see why it can't find the pom.xml, because pom.xml is ... workspace/admin_linux/bword. But how to fix this?

推荐答案

好像您的工作区视图映射不正确.

Looks like your workspace View mapping is incorrect.

您需要知道POM的仓库路径"位置(例如//depot/bword/pom.xml),您可以使用P4V并选择仓库"选项卡并浏览到正确的位置来轻松找到这一点.

You need to know the 'Depot Path' location of your POM (e.g. //depot/bword/pom.xml) you can find this easily enough using P4V and selecting the depot tab and browsing to the correct location.

工作空间将Depot路径(左)映射到工作空间路径(右),因此,如果希望//depot/bword/...下的所有文件都出现在工作空间的根目录中(//admin_linux/...),则您的映射将为:

The workspace maps the Depot paths (Left) to the Workspace path (right), so if you want all the files under //depot/bword/... to appear in the root of your workspace (//admin_linux/...) then your mapping will be:

//depot/bword/... //admin_linux/...

有关工作区映射的更多详细信息,请参阅文档此处,然后向下滚动至示例2.设置工作区视图".

For more details on Workspace mappings take a look at the docs here and scroll down to 'Example 2. Setting the workspace view.'

这篇关于Perforce Jenkins视图映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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