Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jenkins 为什么';我的詹金斯工作不使用P4票吗?_Jenkins_Perforce - Fatal编程技术网

Jenkins 为什么';我的詹金斯工作不使用P4票吗?

Jenkins 为什么';我的詹金斯工作不使用P4票吗?,jenkins,perforce,Jenkins,Perforce,我有多个詹金斯的工作,发现其中一个失败了,因为它似乎没有使用P4票 以下是运行良好的QuickBuild日志的开始部分(请注意,这是perforce插件的日志,在我的构建脚本开始运行之前) 你可以看到-P10F4。。。。日志中的ticket,并且%P4TICKET%的值可用于正在启动以执行生成的脚本 但是,在失败的ThroughBuild作业中,日志也是如此 Building on master in workspace E:\ProgramData\Jenkins\workspace\Thor

我有多个詹金斯的工作,发现其中一个失败了,因为它似乎没有使用P4票

以下是运行良好的
QuickBuild
日志的开始部分(请注意,这是perforce插件的日志,在我的构建脚本开始运行之前)

你可以看到-P10F4。。。。日志中的ticket,并且
%P4TICKET%
的值可用于正在启动以执行生成的脚本

但是,在失败的
ThroughBuild
作业中,日志也是如此

Building on master in workspace E:\ProgramData\Jenkins\workspace\ThoroughBuild
Using master perforce client: ThoroughBuild
[ThoroughBuild] $ p4 workspace -o ThoroughBuild
Last build changeset: 56725
[ThoroughBuild] $ p4 changes -s submitted -m 1 //ThoroughBuild/...
[ThoroughBuild] $ p4 -s changes -s submitted //ThoroughBuild/...@56726,@56727
[ThoroughBuild] $ p4 describe -s 56727
请注意日志中缺少-p参数<代码>%P4TICKET%未在环境中设置,因此生成脚本失败(因为它尝试签出文件)

这种行为是一致的(QuickBuild始终使用票据,ThroughBuild从不使用票据。)


谁能告诉我需要在
ThroughBuild
作业中配置什么才能使用票证?据我所知,两个作业的相关配置部分是相同的,只是它们的性能工作区映射不同。

票证存储在当前用户的主目录中。如果您使用不同的权限运行Jenkins,这可能是一个问题,因为它找不到正确的登录票证。
您可以与P4USER一起检查您是否真的在使用您定义的帐户。与端口和密码类似。

运行ThroughBuild作业的从属代理可能已经在运行Performce实例。杀死在从属代理上运行的所有perforce实例,并启动新的构建。它现在应该在控制台中显示perforce票证,您可以在构建步骤中使用它

Building on master in workspace E:\ProgramData\Jenkins\workspace\ThoroughBuild
Using master perforce client: ThoroughBuild
[ThoroughBuild] $ p4 workspace -o ThoroughBuild
Last build changeset: 56725
[ThoroughBuild] $ p4 changes -s submitted -m 1 //ThoroughBuild/...
[ThoroughBuild] $ p4 -s changes -s submitted //ThoroughBuild/...@56726,@56727
[ThoroughBuild] $ p4 describe -s 56727