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

AccuRev snapshot name incorrect

XMLWordPrintable

      Summary:

      Issue JENKINS-5195 introduced a (much needed) feature to create a snapshot of the code being built.
      This specified that the snapshot name would be prefixed by the AccuRev stream name.
      This wasn't done - the Hudson job name was used instead.

      Details:

      Hudson job names aren't subject to the same restrictions as AccuRev snapshot names, which can result in invalid snapshot names being tried.
      e.g. a Hudson project name of "010_My_Project" sourced from AccuRev stream "MyProject" being built as build number 1234 would attempt to use a snapshot name of "010_My_Project_1234" which fails with the error:
      Invalid stream name. Streams must begin with a non-digit other than "." and cannot contain the characters '\' or '/'

      The snapshot name should be prefixed by the AccuRev stream name, as originally proposed.
      However, it should probably also include the Hudson project name as well, in order to work around AccuRev's limitation that snapshot names be globally unique (not merely unique within the stream they apply to).

      i.e. instead of

      HudsonProjectName_BuildNumber

      the snapshot name should be

      AccurevStreamName_HudsonProjectName_BuildNumber

      Workaround

      Rename all your Hudson projects to meet with AccuRev's snapshot name restrictions.

            helterscelter helter scelter
            pjdarton pjdarton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: