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

Allow lshistory from specified directory

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • clearcase-plugin
    • None
    • Platform: All, OS: Linux

      Our repo is set up in a way that when I have a load rule in my config spec like
      "load vobs/gtx2", the lshistory command is getting run in the snapshot view at
      the parent of that and gets an error because, apparently, "vobs" is not a vob
      element.

      It would be nice if you could specify a specific path to feed into the lshistory
      command. For me, "vobs/*" works from the command line.

      Here's the error output in case it helps:

      Done loading "/vobs/gtx2" (16879 objects, copied 0 KB).
      [snapshot14_cruise1_fhudson_feature_6.43_20071120] $ cleartool lshistory -r
      -since 28-Nov.15:30:38 -fmt '\"%Nd\" \"%u\" \"%e\" \"%En\" \"%Vn\"\n%c\n'
      -branch feature_6.43 -nco update.28-Nov-07.16:03:36.updt vobs .view.stg .view.dat
      cleartool: Error: Not an object in a vob: "update.28-Nov-07.16:03:36.updt".
      cleartool: Error: Not an object in a vob: "vobs".
      cleartool: Error: Not an object in a vob: ".view.stg".
      cleartool: Error: Not an object in a vob: ".view.dat".
      FATAL: Clear Case failed. exit code=1
      FATAL: Clear tool did not return the expected exit code. Command line="cleartool
      lshistory -r -since 28-Nov.15:30:38 -fmt \"%Nd\" \"%u\" \"%e\" \"%En\"
      \"%Vn\"\n%c\n -branch feature_6.43 -nco update.28-Nov-07.16:03:36.updt vobs
      .view.stg .view.dat", actual exit code=1
      java.io.IOException: Clear tool did not return the expected exit code. Command
      line="cleartool lshistory -r -since 28-Nov.15:30:38 -fmt \"%Nd\" \"%u\" \"%e\"
      \"%En\" \"%Vn\"\n%c\n -branch feature_6.43 -nco update.28-Nov-07.16:03:36.updt
      vobs .view.stg .view.dat", actual exit code=1
      at hudson.plugins.clearcase.ClearCaseSCM.run(ClearCaseSCM.java:272)
      at hudson.plugins.clearcase.ClearCaseSCM.getHistoryEntries(ClearCaseSCM.java:247)
      at hudson.plugins.clearcase.ClearCaseSCM.checkout(ClearCaseSCM.java:117)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:541)
      at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:223)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:189)
      at hudson.model.Run.run(Run.java:649)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:172)
      at hudson.model.ResourceController.execute(ResourceController.java:70)
      at hudson.model.Executor.run(Executor.java:62)

            redsolo redsolo
            esmalling Eric Smalling
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: