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

running a freesyle job using a kubenetes cloud pod template runs scm triggered jobs continuously

XMLWordPrintable

      run a freestyle job configured with an scm trigger using a kubenetes cloud agent template with the following trigger:

      git

      {    ...     branch("*/build-*") }

       
      triggers

      {   scm('H/5 * * * *') }

       

      expected: 

      job checks for changes every 5 minutes, but only triggers when changes have been checked in on a matching branch

       

      actual: 

      job triggers every 5 minutes and runs continuously even when there are no branches with active changes

       

      note: when running the same job on a non-kubernetes based jenkins agent, the same build runs as expected (ie: job only triggers with actual changes are merged in the scm) so the issue likely pertains specifically to the kubernetes cloud agent template scenario

       

      note 2: the scenario doesn't happen with the branch doesn't use pattern matching

       

            slide_o_mix Alex Earl
            normana400 Andrew Norman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: