java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ../configspec5139.txt", actual exit code=1

Jenkins JIRA | Jose Sa | 6 years ago
  1. 0

    Running a build in Remote server fails to set config spec designed in Job due to wrong path used using setcs command. [SPOTS_V14M_Solaris_Core_compile] $ /usr/atria/bin/cleartool catcs -tag hudson_SPOTS_V14M_CORE element * CHECKEDOUT element * /main/LATEST [hudson_SPOTS_V14M_CORE] $ /usr/atria/bin/cleartool setcs ../configspec5139.txt cleartool: Error: Unable to access "../configspec5139.txt": No such file or directory. cleartool: Error: Unable to change configuration specification: No such file or directory. FATAL: Base ClearCase failed. exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ../configspec5139.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:107) at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:70) at hudson.plugins.clearcase.ClearToolExec.runAndProcessOutput(ClearToolExec.java:704) at hudson.plugins.clearcase.ClearToolExec.setcs(ClearToolExec.java:763) at hudson.plugins.clearcase.ClearToolExec.setcs(ClearToolExec.java:735) at hudson.plugins.clearcase.action.DynamicCheckoutAction.checkout(DynamicCheckoutAction.java:96) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:484) at hudson.model.AbstractProject.checkout(AbstractProject.java:1038) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1257) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:129) Archiving artifacts Recording fingerprints Finished: FAILURE I can see at the remote server the following files: ~> find /tmp/hudson/workspace /tmp/hudson/workspace /tmp/hudson/workspace/SPOTS_V14M_Solaris_Core_compile /tmp/hudson/workspace/SPOTS_V14M_Solaris_Core_compile/configspec5139.txt /tmp/hudson/workspace/SPOTS_V14M_Solaris_Core_compile/build.cs Running the job without setting the configspec runs ok and I can see that it is running in the following path: + pwd /tmp/hudson/workspace/SPOTS_V14M_Solaris_Core_compile

    Jenkins JIRA | 6 years ago | Jose Sa
    java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ../configspec5139.txt", actual exit code=1
  2. 0

    Running a build in Remote server fails to set config spec designed in Job due to wrong path used using setcs command. [SPOTS_V14M_Solaris_Core_compile] $ /usr/atria/bin/cleartool catcs -tag hudson_SPOTS_V14M_CORE element * CHECKEDOUT element * /main/LATEST [hudson_SPOTS_V14M_CORE] $ /usr/atria/bin/cleartool setcs ../configspec5139.txt cleartool: Error: Unable to access "../configspec5139.txt": No such file or directory. cleartool: Error: Unable to change configuration specification: No such file or directory. FATAL: Base ClearCase failed. exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ../configspec5139.txt", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:107) at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:70) at hudson.plugins.clearcase.ClearToolExec.runAndProcessOutput(ClearToolExec.java:704) at hudson.plugins.clearcase.ClearToolExec.setcs(ClearToolExec.java:763) at hudson.plugins.clearcase.ClearToolExec.setcs(ClearToolExec.java:735) at hudson.plugins.clearcase.action.DynamicCheckoutAction.checkout(DynamicCheckoutAction.java:96) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:484) at hudson.model.AbstractProject.checkout(AbstractProject.java:1038) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1257) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:129) Archiving artifacts Recording fingerprints Finished: FAILURE I can see at the remote server the following files: ~> find /tmp/hudson/workspace /tmp/hudson/workspace /tmp/hudson/workspace/SPOTS_V14M_Solaris_Core_compile /tmp/hudson/workspace/SPOTS_V14M_Solaris_Core_compile/configspec5139.txt /tmp/hudson/workspace/SPOTS_V14M_Solaris_Core_compile/build.cs Running the job without setting the configspec runs ok and I can see that it is running in the following path: + pwd /tmp/hudson/workspace/SPOTS_V14M_Solaris_Core_compile

    Jenkins JIRA | 6 years ago | Jose Sa
    java.io.IOException: cleartool did not return the expected exit code. Command line="setcs ../configspec5139.txt", actual exit code=1
  3. 0

    Integrating Hudson with UCM Clearcase on windows machine

    Stack Overflow | 6 years ago | Umang
    java.io.IOException: cleartool did not return the expected exit code. Command line="setcs -tag advcm3_LAC_FN38_Test -stream", actual exit code=1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: Base Clearcase issues

    Google Groups | 6 years ago | BEvans
    java.io.IOException: cleartool did not return the expected exit code. Command line="startview GURt2645", actual exit code=1
  6. 0

    Regarding problem with base clear case plugin (1.3.6)

    Google Groups | 4 years ago | Deepika Garg
    java.io.IOException: cleartool did not return the expected exit code. Command line="startview GURt2645", actual exit code=1

    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="setcs ../configspec5139.txt", actual exit code=1

      at hudson.plugins.clearcase.HudsonClearToolLauncher.run()
    2. hudson.plugins.clearcase
      AbstractClearCaseScm.checkout
      1. hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:107)
      2. hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:70)
      3. hudson.plugins.clearcase.ClearToolExec.runAndProcessOutput(ClearToolExec.java:704)
      4. hudson.plugins.clearcase.ClearToolExec.setcs(ClearToolExec.java:763)
      5. hudson.plugins.clearcase.ClearToolExec.setcs(ClearToolExec.java:735)
      6. hudson.plugins.clearcase.action.DynamicCheckoutAction.checkout(DynamicCheckoutAction.java:96)
      7. hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:484)
      7 frames
    3. Hudson
      Executor.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1038)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
      4. hudson.model.Run.run(Run.java:1257)
      5. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      6. hudson.model.ResourceController.execute(ResourceController.java:88)
      7. hudson.model.Executor.run(Executor.java:129)
      7 frames