gpt4 book ai didi

Perforce 密码 (P4PASSWD) 无效或未设置

转载 作者:行者123 更新时间:2023-12-02 03:39:22 24 4
gpt4 key购买 nike

我在 Cruisecontrol.net xml 文件中有这个块:

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<project name="MyProject">
<artifactDirectory>C:\Program Files (x86)\CruiseControl.NET\Mydashboard</artifactDirectory>

<sourcecontrol type="p4">
<view>//Myprojectfolder/Code/...</view>
<executable>c:\Program Files\Perforce\p4.exe</executable>
<client>Myworkspace</client>
<user>John</user>
<applyLabel>false</applyLabel>

<port>PERFORCEPR123:10080</port>
<autoGetSource>true</autoGetSource>
</sourcecontrol>
<tasks>

<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework64\v3.5\MSBuild.exe</executable>
<workingDirectory>D:\Workspace\Myworkspace\Code\src</workingDirectory>
<projectFile>Myproject.sln</projectFile>
<targets>Build</targets>
<timeout>1000000</timeout>
<logger>C:\Program Files (x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll</logger>
<buildArgs>/v:minimal /noconlog /p:Configuration=Release</buildArgs>
</msbuild>

</tasks>

<publishers>

<xmllogger logDir="C:\Program Files (x86)\CruiseControl.NET\Mydashboard\Buildlogs" />
<buildpublisher>
<sourceDir>D:\Workspace\Myworkspace\Code\src\newsrc\Webapplication.site</sourceDir>
<publishDir>D:\deployment\Webapplication.site</publishDir>
<useLabelSubDirectory>false</useLabelSubDirectory>
<alwaysPublish>false</alwaysPublish>
</buildpublisher>
</publishers>
</project>
</cruisecontrol>

但是,当我构建我的项目时,我收到以下错误:
BUILD EXCEPTION
Error Message:
ThoughtWorks.CruiseControl.Core.CruiseControlException: Perforce GetModifications failed: c:\Program Files\Perforce\p4.exe -s -c Myworkspace -p PERFORCEPR123:10080 -u John -P john123 changes -s submitted //Myprojectfolder/Code/......@2014/01/15:08:13:20,@2014/01/15:08:14:20
Error output from process was:
error: Perforce password (P4PASSWD) invalid or unset.
exit: 1

at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4.Execute(ProcessInfo process, String description)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.Perforce.P4.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModificationsWithLogging(ISourceControl sc, IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.Sourcecontrol.QuietPeriod.GetModifications(ISourceControl sourceControl, IIntegrationResult lastBuild, IIntegrationResult thisBuild)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.GetModifications(IIntegrationResult from, IIntegrationResult to)
at ThoughtWorks.CruiseControl.Core.IntegrationRunner.Integrate(IntegrationRequest request)

有解决方法吗?

谢谢

最佳答案

我怀疑 CC 只是使用 Perforce 命令行客户端。为了解决这个问题,我会:

1) 向 Perforce 添加一个组并将超时设置为无限制。
2)将运行CC任务的用户添加到Perforce组
3)从构建机器运行'p4 -u login'

这将存储一个永久存在的本地票证以验证用户。如果您需要一个帐户来运行 CC 等工具,请填写此表格,Perforce 将为您提供一个免费的后台用户:

http://www.perforce.com/support-services/request-background-user

关于Perforce 密码 (P4PASSWD) 无效或未设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21146418/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com