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

Git polling shouldn't need a workspace on a slave.

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • git-plugin
    • None

    Description

      What happened:

      I have two slaves (1 & 2). I took slave 1 down for maintenance and a bunch of old, rarely updated, git builds kicked off. When I checked the git polling log, I saw a message (it's gone now, darn it) that said it was rebuilding to get workspace for git polling.

      A workspace shouldn't be needed.

      I'm unclear what git needs for this, but if you're tracking only a single branch (master) then you just need the HEAD and can compare the SHA1s.

      If it technically really really needs a git checkout, then I'd prefer if they were kept on an assigned host (the jenkins server in my case, master) instead of using the workspaces for this check. I'd want this for a couple reasons:

      • Slaves come and go. Rebuilding all my projects because a slave went down is unproductive.
      • Occasionally, I need to go into a slave and monkey with a workspace to troubleshoot a weird problem. I don't want that to impact polling.
      • It's a waste of space on the slaves. I'd rather control where the space is wasted.

      Ciao!

      Attachments

        Issue Links

          Activity

            docwhat Christian Höltje created issue -
            ustuehler Uwe Stuehler made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-9596 [ JENKINS-9596 ]
            marc_guenther Marc Günther made changes -
            Link This issue is related to JENKINS-10880 [ JENKINS-10880 ]
            ringerc Craig Ringer made changes -
            Link This issue is related to JENKINS-9067 [ JENKINS-9067 ]
            ndeloof Nicolas De Loof made changes -
            Issue Type Bug [ 1 ] Improvement [ 4 ]
            ojacobson Owen Jacobson made changes -
            Link This issue is related to JENKINS-20607 [ JENKINS-20607 ]
            markewaite Mark Waite made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 140319 ] JNJira + In-Review [ 205203 ]

            People

              abayer Andrew Bayer
              docwhat Christian Höltje
              Votes:
              22 Vote for this issue
              Watchers:
              27 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: