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

GIT polling not working when workspace is not available

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • git-plugin
    • None

      Hello,

      We are using below versions of Jenkins and plugins.

      Jenkins - 1.642.2
      Git plugin (2.4.4)
      credentials (version:1.25)
      mailer (version:1.16)
      scm-api (version:1.0)
      git-client (version:1.19.6)
      matrix-project (version:1.6)
      ssh-credentials (version:1.11)

      We've configured jobs using both git client 1.9.5 and jgit. After the first build, I've removed the workspace using wipe out workspace option. And configured the poll scm to poll every 2 mins. But build has never triggered after that, we are seeing below info in poll scm log.

      As an alternative, I've updated job configuration with "Force polling using workspace". But still job is not getting triggered, we are seeing below info in git polling log.

      Started on Apr 3, 2016 6:22:00 PM
      No workspace is available, so can't check for updates. (nonexisting_workspace)
      Done. Took 38 ms
      No changes

      Polling log when no workspace with Jgit —

      Done. Took 0.33 sec
      No changes

      To replicate, please follow below steps with latest git plugin:
      Create a job with git and polling
      Run the job for first time and verify git polling.
      Once build is completed, wipe out the workspace (Dont commit any changes to git ) and check if build is getting triggered.

            markewaite Mark Waite
            srinivas_n4u Srinivas Nedunuri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: