Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-5822

master / slave issue with clearcase plugin (failed builds due to views not available when build is executed on slaves.)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • clearcase-plugin
    • None
    • LINUX RHEE 5.7

      Hi,

      please consider the following scenario:

      hudson is set up on master and has several slaves considered for running builds in clearcase. All works fine but builds that have been passed to a slave will fail in case nobody has previously set the view manually on that host. In such a case hudson will not be able to access the view under /view/<viewname>/ and fail.

      I have built a workaround (cronjob) for this which continuously logs into all slaves (ever couple of minutes) and does a
      $> cleartool setview -exec 'cleartool pwv -s' <viewname>
      in order to ensure that the slaves have been mounted whenever hudson needs them.

      This is ugly but have currently no idea on how to get around this.

      Here is what is in the logs (this is the complete log)

      Started by an SCM change
      Building remotely on nxnci5
      Failed to mkdirs: /view/ci_FOO_i22/foo/fooDo/
      [CppUnit] Recording of the CppUnit tests results.
      ERROR: Publisher hudson.plugins.cppunit.CppUnitPublisher aborted due to exception
      java.io.IOException: Failed to mkdirs: /view/ci_FOO_i22/foo/fooDo//cppunitpluginTemp
      at hudson.FilePath.mkdirs(FilePath.java:753)
      at hudson.plugins.cppunit.CppUnitPublisher.perform(CppUnitPublisher.java:89)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550)
      at hudson.model.Build$RunnerImpl.post2(Build.java:152)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      at hudson.model.Run.run(Run.java:1233)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:122)
      [htmlpublisher] Archiving HTML reports...
      [htmlpublisher] Archiving at PROJECT level /view/ci_FOO_i22/foo/fooDo/coverage/FOO/ to /user/ci/.hudson/jobs/FOO_i22/htmlreports/LCOV_Report
      ERROR: Specified HTML directory '/view/ci_FOO_i22/foo/fooDo/coverage/FOO/' does not exist.
      Sending e-mails to: COORAMRDBTSCPFTALL@internal.nsn.com
      Finished: FAILURE

            Unassigned Unassigned
            jbauernberger jbauernberger
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: