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

Race condition when triggering project that uses Tracking SVN Plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • tracking-svn-plugin
    • None

      We use the Tracking SVN Plugin to configure a number of downstream jobs to run the SVN revision that last successfully passed our commit build. These jobs are triggered by the commit build.

      So the sequence should be:
      1. Commit build detects change in SVN, checks out and build rev 300.
      2. Commit build finishes building rev 300
      3. Commit build triggers analysis build
      4. Analysis build starts running and finds the last successful commit build was rev 300, so runs analysis on rev 300.

      Most of the time, that works but occasionally we actually get:

      1. Commit build detects change in SVN, checks out and build rev 300.
      2. Commit build triggers analysis build
      3. Analysis build starts running and finds the last successful commit build was rev 299, so runs analysis on rev 299.
      4. Commit build finishes building rev 300

      It looks like the downstream builds are being triggered before the the commit build is fully recorded as complete.

            Unassigned Unassigned
            adriansutton Adrian Sutton
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: