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

New snapshot creation feature can cause SCM-checkout-retry mechanism to fail

XMLWordPrintable

      Hudson has a setting (in Manage Hudson -> Configure System) called "SCM checkout retry count".
      When set to a (non-zero) number, this causes Hudson to retry a build if a Hudson's initial attempt to talk to an unreliable source-code repository fails, thus ensuring that builds don't start going red just because the source code repository suffered an outage.

      This is a very important feature when using AccuRev, as the AccuRev client sometimes returns truncated or corrupted data (often enough to cause problems), causing the series of AccuRev operations that the Hudson plugin does to report a failure: Retrying the build usually results in the AccuRev client behaving itself and the build proceeds as expected.

      Unfortunately, if one has ticked the new "Create and build from snapshot" facility and the previous build attempt fell over after the "create snapshot" phase, the subsequent retry will then fail to create a snapshot (as one already exists).

            statler Scott Tatum
            pjdarton pjdarton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: