java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag _jenkins_my_project -vws null/_jenkins_my_project.vws _jenkins_my_project", actual exit code=1

Jenkins JIRA | Jordan Bentley | 5 years ago
  1. 0

    [JENKINS-13901] Clearcase plugin tries to use mkview with "-vws null/[viewpath]" after restart - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag _jenkins_my_project -vws null/_jenkins_my_project.vws _jenkins_my_project", actual exit code=1
  2. 0

    Every time the Jenkins server is restarted all of our ClearCase builds break. All of our builds are using snapshot views and run on slave nodes, no jobs are run on the master. Polling is also broken but I do not know if the problems are related. The log when the build is failing: Building remotely on goesrpora in workspace /goesrpora/linux/local_home/jenkins/jenkins_slave/workspace/my_project $ /opt/ibm/RationalSDLC/clearcase//bin/cleartool lsview -cview -s $ /opt/ibm/RationalSDLC/clearcase//bin/cleartool lsview _jenkins_my_project cleartool: Error: No matching entries found for view tag "_jenkins_my_project". FATAL: Base ClearCase failed. exit code=1 $ /opt/ibm/RationalSDLC/clearcase//bin/cleartool mkview -snapshot -tag _jenkins_my_project -vws null/_jenkins_my_project.vws _jenkins_my_project cleartool: Error: unable to create directory null/_jenkins_my_project.vws: No such file or directory cleartool: Error: Unable to create directory "null/_jenkins_my_project.vws": No such file or directory. cleartool: Error: Unable to create view "null/_jenkins_my_project.vws". FATAL: Base ClearCase failed. exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag _jenkins_my_project -vws null/_jenkins_my_project.vws _jenkins_my_project", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:107) at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolExec.mkview(ClearToolExec.java:643) at hudson.plugins.clearcase.action.AbstractCheckoutAction.cleanAndCreateViewIfNeeded(AbstractCheckoutAction.java:138) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout(SnapshotCheckoutAction.java:51) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:534) at hudson.model.AbstractProject.checkout(AbstractProject.java:1218) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:581) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470) at hudson.model.Run.run(Run.java:1434) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) [FINDBUGS] Skipping publisher since build result is FAILURE [WARNINGS] Skipping publisher since build result is FAILURE [TASKS] Skipping publisher since build result is FAILURE Archiving artifacts Finished: FAILURE If I go in to the projects configuration and hit save, without necessarily making any changes, the build will use "-stgloc -auto" like it is supposed to and continue to work properly until the server is restarted.

    Jenkins JIRA | 5 years ago | Jordan Bentley
    java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag _jenkins_my_project -vws null/_jenkins_my_project.vws _jenkins_my_project", actual exit code=1
  3. 0

    Every time the Jenkins server is restarted all of our ClearCase builds break. All of our builds are using snapshot views and run on slave nodes, no jobs are run on the master. Polling is also broken but I do not know if the problems are related. The log when the build is failing: Building remotely on goesrpora in workspace /goesrpora/linux/local_home/jenkins/jenkins_slave/workspace/my_project $ /opt/ibm/RationalSDLC/clearcase//bin/cleartool lsview -cview -s $ /opt/ibm/RationalSDLC/clearcase//bin/cleartool lsview _jenkins_my_project cleartool: Error: No matching entries found for view tag "_jenkins_my_project". FATAL: Base ClearCase failed. exit code=1 $ /opt/ibm/RationalSDLC/clearcase//bin/cleartool mkview -snapshot -tag _jenkins_my_project -vws null/_jenkins_my_project.vws _jenkins_my_project cleartool: Error: unable to create directory null/_jenkins_my_project.vws: No such file or directory cleartool: Error: Unable to create directory "null/_jenkins_my_project.vws": No such file or directory. cleartool: Error: Unable to create view "null/_jenkins_my_project.vws". FATAL: Base ClearCase failed. exit code=1 java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag _jenkins_my_project -vws null/_jenkins_my_project.vws _jenkins_my_project", actual exit code=1 at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:107) at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:72) at hudson.plugins.clearcase.ClearToolExec.mkview(ClearToolExec.java:643) at hudson.plugins.clearcase.action.AbstractCheckoutAction.cleanAndCreateViewIfNeeded(AbstractCheckoutAction.java:138) at hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout(SnapshotCheckoutAction.java:51) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:534) at hudson.model.AbstractProject.checkout(AbstractProject.java:1218) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:581) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470) at hudson.model.Run.run(Run.java:1434) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239) [FINDBUGS] Skipping publisher since build result is FAILURE [WARNINGS] Skipping publisher since build result is FAILURE [TASKS] Skipping publisher since build result is FAILURE Archiving artifacts Finished: FAILURE If I go in to the projects configuration and hit save, without necessarily making any changes, the build will use "-stgloc -auto" like it is supposed to and continue to work properly until the server is restarted.

    Jenkins JIRA | 5 years ago | Jordan Bentley
    java.io.IOException: cleartool did not return the expected exit code. Command line="mkview -snapshot -tag _jenkins_my_project -vws null/_jenkins_my_project.vws _jenkins_my_project", actual exit code=1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 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

    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="mkview -snapshot -tag _jenkins_my_project -vws null/_jenkins_my_project.vws _jenkins_my_project", 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:72)
      3. hudson.plugins.clearcase.ClearToolExec.mkview(ClearToolExec.java:643)
      4. hudson.plugins.clearcase.action.AbstractCheckoutAction.cleanAndCreateViewIfNeeded(AbstractCheckoutAction.java:138)
      5. hudson.plugins.clearcase.action.SnapshotCheckoutAction.checkout(SnapshotCheckoutAction.java:51)
      6. hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:534)
      6 frames
    3. Hudson
      Executor.run
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1218)
      2. hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:581)
      3. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470)
      4. hudson.model.Run.run(Run.java:1434)
      5. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      6. hudson.model.ResourceController.execute(ResourceController.java:88)
      7. hudson.model.Executor.run(Executor.java:239)
      7 frames