Workflow and svn polling

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: pipeline
    • None

      When pulling my workflow script from a svn repo I get two builds triggered for one revision change if build runs longer then pull interval,

      To reproduce:

      Create workflow job with a standard svn pull configured in job, for my test I set to every minute

      Sample Job DSL
      ---------------------------------------

      node ('master') { 
      checkout changelog: false, poll: false, scm: [ $class: "SubversionSCM", locations: [[ remote:'SVNURL/trunk/flow']] ] 
      load 'flow/Test.groovy' 
      }()
      

      Sample Test.groovy
      ---------------------------

      { -> 
      node() { 
      ws() { 
      checkout changelog: true, poll: true, scm: [$class: "SubversionSCM", locations: [[remote: 'SVNURL/trunk']]] 
      sleep 300 
      } 
      } 
      }
      

      Note: I pull my workflow scripts from the same repo as my build.

      Any scheduled poll that happens before build completion will trigger another job,

      Looking at the polling log it seems it is comparing against the last completed build and not the in progress.

      Notes:

            Assignee:
            Jesse Glick
            Reporter:
            Owen Wood
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: