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

Change log crashes due to -S option not supported by CVS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • cvs-plugin
    • None

      There are some organisation still using older versions of CVS servers which don't support rlog with -S option. The CVS server the team I am on use is out of our control and there is no plan to upgrade it. If I don't 'select skip changelog' the build will always fail with the exception listed below. I have tested executing this command without the -S option and the command is successful. A fix for this could be to include a checkbox in the build configuration which allows the user to run rlog in a legacy mode without the -S option.

      Using locally configured password for connection to :pserver:userx@xxxx-xxxxxxxx:/ra1/CVS
      cvs rlog -S -d25 Oct 2013 16:35:32 +1100<29 Oct 2013 10:57:37 +1100
      myproject/xxx/xxx
      cvs server: invalid option – S
      Usage: cvs rlog [-lRhtNb] [-r[revisions]] [-d dates] [-s states]
      [-w[logins]] [files...]
      -l Local directory only, no recursion.
      -R Only print name of RCS file.
      -h Only print header.
      -t Only print header and descriptive text.
      -N Do not list tags.
      -b Only list revisions on the default branch.
      -r[revisions] Specify revision(s)s to list.
      rev1:rev2 Between rev1 and rev2, including rev1 and rev2.
      rev1::rev2 Between rev1 and rev2, excluding rev1 and rev2.
      rev: rev and following revisions on the same branch.
      rev:: After rev on the same branch.
      :rev rev and previous revisions on the same branch.
      ::rev Before rev on the same branch.
      rev Just rev.
      branch All revisions on the branch.
      branch. The last revision on the branch.
      -d dates Specify dates (D1<D2 for range, D for latest before).
      -s states Only list revisions with specified states.
      -w[logins] Only list revisions checked in by specified logins.
      (Specify the --help global option for a list of other help options)

      FATAL: Error while trying to run CVS rlog
      java.lang.RuntimeException: Error while trying to run CVS rlog
      at hudson.scm.AbstractCvs.getRemoteLogForModule(AbstractCvs.java:623)
      at hudson.scm.AbstractCvs.calculateChangeLog(AbstractCvs.java:696)
      at hudson.scm.AbstractCvs.postCheckout(AbstractCvs.java:715)
      at hudson.scm.CVSSCM.checkout(CVSSCM.java:359)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1256)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:590)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:495)
      at hudson.model.Run.execute(Run.java:1502)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:237)

            Unassigned Unassigned
            simonb Simon Borysiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: