詹金斯基地清除案例失败



我已经使用Jenkins和Base Clearcase插件设置了一个用于源代码集成的构建服务器。我可以成功进行日常构建,但有时会出现以下错误;

Started by user unknown or anonymous
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building in workspace C:JenkinsHomeworkspaceProjectBuild
[Project_Build_View] $ cleartool lsview -cview -s
cleartool: Error: Unable to find view by uuid:caccabc2.828941b7.86a3.f1:14:88:fe:16:4f, last known at "<viewhost>:<stg_path>".
cleartool: Error: Unable to establish connection to snapshot view "caccabc2.828941b7.86a3.f1:14:88:fe:16:4f": ClearCase object not found
cleartool: Error: Cannot get view info for current view: not a ClearCase object.
FATAL: Base ClearCase failed. exit code=1
[ProjectBuild] $ cleartool lsview Project_Build_View
Project_Build_View       \ViewStore\Project_Build_View.vws
[INFO] computeChangeLogBeforeCheckout = false
[INFO] computeChangeLogAfterCheckout  = true
[ProjectBuild] $ cleartool lsview Project_Build_View
Project_Build_View       ViewStore\Project_Build_View.3.vws
[Project_Build_View] $ cleartool lsview -cview -s
cleartool: Error: Unable to find view by uuid:caccabc2.828941b7.86a3.f1:14:88:fe:16:4f, last known at "<viewhost>:<stg_path>".
cleartool: Error: Unable to establish connection to snapshot view "caccabc2.828941b7.86a3.f1:14:88:fe:16:4f": ClearCase object not found
cleartool: Error: Cannot get view info for current view: not a ClearCase object.
FATAL: Base ClearCase failed. exit code=1
The view directory is not linked to any view tag. Removing it using OS delete.
[ProjectBuild] $ cleartool mkview -snapshot -tag Project_Build_View -stgloc -auto Project_Build_View
cleartool: Error: A registry entry already exists for "Project_Build_View".
FATAL: Base ClearCase failed. exit code=1
java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag Project_Build_View -stgloc -auto Project_Build_View", actual exit code=1
at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:152)
at hudson.plugins.clearcase.ClearToolExec.mkview(ClearToolExec.java:563)
at hudson.plugins.clearcase.action.SnapshotCheckoutAction.createView(SnapshotCheckoutAction.java:184)
at hudson.plugins.clearcase.action.SnapshotCheckoutAction.cleanAndCreateViewIfNeeded(SnapshotCheckoutAction.java:128)
at hudson.plugins.clearcase.action.BaseSnapshotCheckoutAction.checkout(BaseSnapshotCheckoutAction.java:64)
at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:390)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1205)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1853)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:427)
Finished: FAILURE

你能帮我解决这个问题吗?这个问题的原因是什么?

提前感谢,

我在以下情况下看到了这样的错误消息("Unable to find view by uuid"(:

  • 不完整的交付(通常在多站点环境中,或 CCRC 环境中(
  • 视图注册表未正确同步
  • ALBD 问题

确保在执行此作业时用于 Jenkins 的帐户,执行cleardoctor以检查它 (Jenkins( 如何感知其 ClearCase 环境,以发现它 (Jenkins( 执行环境与当前用户会话之间的任何差异。

最新更新