[英]Let Jenkins build a maven project from Perforce
I am trying to set up a Jenkins server to build Maven projects stored in a Perforce Depot but I am failing the setup of the Perforce plugin. 我试图设置一个Jenkins服务器来构建存储在Perforce Depot中的Maven项目,但是我无法设置Perforce插件。
That's what I have (regardless of Jenkins): 那就是我所拥有的(与詹金斯无关):
//components/myjavaproject/main
(that's the path where the pom.xml
is. 正在运行的Perforce服务器,其Maven项目位于软件仓库//components/myjavaproject/main
(这是pom.xml
所在的路径)。 p4javabld
with a client spec called p4javabld-cqm1
一个Perforce用户p4javabld
与客户端规格称为p4javabld-cqm1
D:\\p4client\\p4javabld
客户端根目录设置为D:\\p4client\\p4javabld
When I set up a Jenkins project I set 当我设置一个詹金斯项目时
P4PORT
to my perforce server, P4PORT
到我的perforce服务器, p4javabld
p4javabld
用户p4javabld
p4javabld-cqm1
p4javabld-cqm1
工作区 stream
with the stream //components/myjavaproject/main
要与stream
一起流//components/myjavaproject/main
客户端视图类型//components/myjavaproject/main
On the config page I get Unable to check workspace against depot and Unable to check stream against depot 在配置页面上,我无法根据仓库检查工作区,也无法根据仓库检查流
When I run a build it executes a 当我运行构建时,它将执行
p4 changes -s submitted -m 1 //p4javabld-cqm1/...
which makes no sense I think. 我认为这没有任何意义。 It seems then to scan the complete Perforce depot and seems not to concentrate on //components/myjavaproject/main
然后,似乎要扫描整个Perforce库,并且似乎不专注于//components/myjavaproject/main
What is the configuration error? 什么是配置错误?
I was able to let Jenkins build a Maven project from Perforce. 我能够让詹金斯从Perforce构建Maven项目。 I used the P4 Plugin instead of the Perforce Plugin . 我使用了P4插件而不是Perforce插件 。 Then I configured a manual workspace with a workspace view to 然后,我使用工作区视图配置了一个手动工作区,以
//components/myjavaproject/main/... //p4javabld-cqm1/...
having the pom.xml
in the root of //components/myjavaproject/main/
在//components/myjavaproject/main/
的根目录中有pom.xml
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.