java.io.IOException: cleartool did not return the expected exit code. Command line="chbl -c Hudson promoted baseline to BUILT -level BUILT build.deskCore_3.2- 44.4851@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.1788@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.804@\P_ORC, baseline:build.151_200810101907@\P_ORC", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run (HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ucm.UcmMakeBaseline.promoteBaselineToBuiltLevel (UcmMakeBaseline.java:317)

Jenkins JIRA | Gregory Boissinot | 8 years ago
  1. 0

    For Hudson ClearCaseUCM mode, when you have one stream and many components, the generated "cleartool mkbl" is wrong. The baselines list is separated is encapsulated with double quote and each beaseline is sperated by a comma. With Clearcase 7, there must be no quote and no comma, just a with espace between each baseline name Hudson Clearcase log : cleartool chbl -c "Hudson promoted baseline to BUILT" -level BUILT "build.deskCore_3.2-44.4851@\P_ORC, baseline:build.deskCore_3.2-2008-10- 14_10-20-34.1788@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20- 34.804@\P_ORC, baseline:build.151_200810101907@\P_ORC" cleartool: Error: Unable to find baseline "build.deskCore_3.2-44.4851@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.1788@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.804@\P_ORC, baseline:build.151_200810101907@\P_ORC". cleartool: Error: Unable to change baseline "build.deskCore_3.2-44.4851@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.1788@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.804@\P_ORC, baseline:build.151_200810101907@\P_ORC". FATAL: ClearCase UCM Makebaseline failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="chbl -c Hudson promoted baseline to BUILT -level BUILT build.deskCore_3.2- 44.4851@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.1788@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.804@\P_ORC, baseline:build.151_200810101907@\P_ORC", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="chbl -c Hudson promoted baseline to BUILT -level BUILT build.deskCore_3.2- 44.4851@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.1788@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.804@\P_ORC, baseline:build.151_200810101907@\P_ORC", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run (HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ucm.UcmMakeBaseline.promoteBaselineToBuiltLevel (UcmMakeBaseline.java:317) at hudson.plugins.clearcase.ucm.UcmMakeBaseline.perform (UcmMakeBaseline.java:188) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:318) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep (AbstractBuild.java:306) at hudson.model.Build$RunnerImpl.cleanUp(Build.java:131) at hudson.model.Run.run(Run.java:832) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:88)

    Jenkins JIRA | 8 years ago | Gregory Boissinot
    java.io.IOException: cleartool did not return the expected exit code. Command line="chbl -c Hudson promoted baseline to BUILT -level BUILT build.deskCore_3.2- 44.4851@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.1788@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.804@\P_ORC, baseline:build.151_200810101907@\P_ORC", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run (HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ucm.UcmMakeBaseline.promoteBaselineToBuiltLevel (UcmMakeBaseline.java:317)
  2. 0

    Sometimes the job fails because the ${NODE_NAME} macro isn't correctly resolved. When the job was last run on slave x and gets dispatched to slave y it fails since ${NODE_NAME} is resolved to x. Job stacktrace: started Building remotely on Seldw2803 [USP-PDE-QA] $ "c:\Program Files\Rational\ClearCase\bin\cleartool" mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210 cleartool: Error: A registry entry already exists for "USP-PDE-QA_seldw2210". FATAL: Base ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.mkview(ClearToolSnapshot.java:53) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout(SnapshotCheckoutAction.java:43) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:199) at hudson.model.AbstractProject.checkout(AbstractProject.java:664) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:261) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:235) at hudson.model.Run.run(Run.java:817) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:88)

    Jenkins JIRA | 8 years ago | PatrikSchalin
    java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72)
  3. 0

    Hudson 1.262, CC plugin 0.7.1. Have 6 jobs which were all blue (previous builds good). No config changes. Hourly trigger kicked in and they all failed, with message: started [workspace] $ "C:\Program Files\Rational\ClearCase\bin\cleartool.exe" mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile cleartool: Error: A registry entry already exists for "wendy_cgate_main_compile". FATAL: Base ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.mkview(ClearToolSnapshot.java:53) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout(SnapshotCheckoutAction.java:43) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:199) at hudson.model.AbstractProject.checkout(AbstractProject.java:666) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:261) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:235) at hudson.model.Run.run(Run.java:817) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90)

    Jenkins JIRA | 8 years ago | djcarr
    java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hudson 1.262, CC plugin 0.7.1. Have 6 jobs which were all blue (previous builds good). No config changes. Hourly trigger kicked in and they all failed, with message: started [workspace] $ "C:\Program Files\Rational\ClearCase\bin\cleartool.exe" mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile cleartool: Error: A registry entry already exists for "wendy_cgate_main_compile". FATAL: Base ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.mkview(ClearToolSnapshot.java:53) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout(SnapshotCheckoutAction.java:43) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:199) at hudson.model.AbstractProject.checkout(AbstractProject.java:666) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:261) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:235) at hudson.model.Run.run(Run.java:817) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:90)

    Jenkins JIRA | 8 years ago | djcarr
    java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag wendy_cgate_main_compile wendy_cgate_main_compile", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72)
  6. 0

    Sometimes the job fails because the ${NODE_NAME} macro isn't correctly resolved. When the job was last run on slave x and gets dispatched to slave y it fails since ${NODE_NAME} is resolved to x. Job stacktrace: started Building remotely on Seldw2803 [USP-PDE-QA] $ "c:\Program Files\Rational\ClearCase\bin\cleartool" mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210 cleartool: Error: A registry entry already exists for "USP-PDE-QA_seldw2210". FATAL: Base ClearCase failed. exit code=1 FATAL: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210", actual exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolSnapshot.mkview(ClearToolSnapshot.java:53) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout(SnapshotCheckoutAction.java:43) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:199) at hudson.model.AbstractProject.checkout(AbstractProject.java:664) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:261) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:235) at hudson.model.Run.run(Run.java:817) at hudson.model.Build.run(Build.java:88) at hudson.model.ResourceController.execute(ResourceController.java:70) at hudson.model.Executor.run(Executor.java:88)

    Jenkins JIRA | 8 years ago | PatrikSchalin
    java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag USP-PDE-QA_seldw2210 USP-PDE-QA_seldw2210", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      cleartool did not return the expected exit code. Command line="chbl -c Hudson promoted baseline to BUILT -level BUILT build.deskCore_3.2- 44.4851@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.1788@\P_ORC, baseline:build.deskCore_3.2-2008-10-14_10-20-34.804@\P_ORC, baseline:build.151_200810101907@\P_ORC", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run (HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ucm.UcmMakeBaseline.promoteBaselineToBuiltLevel (UcmMakeBaseline.java:317)

      at hudson.plugins.clearcase.ucm.UcmMakeBaseline.perform()
    2. hudson.plugins.clearcase
      UcmMakeBaseline.perform
      1. hudson.plugins.clearcase.ucm.UcmMakeBaseline.perform(UcmMakeBaseline.java:188)
      1 frame
    3. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:318)
      2. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:306)
      3. hudson.model.Build$RunnerImpl.cleanUp(Build.java:131)
      4. hudson.model.Run.run(Run.java:832)
      5. hudson.model.Build.run(Build.java:88)
      6. hudson.model.ResourceController.execute(ResourceController.java:70)
      7. hudson.model.Executor.run(Executor.java:88)
      7 frames