我在詹金斯建立工作时遇到以下错误。启动视图时发生错误。所以我知道我需要在启动它之前创建那个视图,这样它就不会出错。
但是我的查询是我应该在 Jenkins 的哪个位置添加这些步骤以创建动态视图,甚至在开始之前?
Building remotely on my_machine in workspace c:/hw/workspace/my_project_13.6
[my_project_13.6] $ cleartool startview username_my_machine_my_project_13.6
cleartool: Error: View tag not found: "username_my_machine_my_project_13.6".
FATAL: Base ClearCase failed. exit code=1
java.io.IOException: cleartool did not return the expected exit code. Command line="startview username_my_machine_my_project_13.6", actual exit code=1
at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:120)
at hudson.plugins.clearcase.ClearToolExec.startView(ClearToolExec.java:913)
at hudson.plugins.clearcase.action.BaseDynamicCheckoutAction.startView(BaseDynamicCheckoutAction.java:115)