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

Support for "Poll on Master" for Subversion SCM plugin

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Critical Critical
    • subversion-plugin
    • None

      When slaves aren't always available sometimes the workspace goes missing - in this case, all affected task (i.e. those on the master) get rescheduled for building when their SCM is checked for a later revision.

      Polling on Master (see Perforce plugin) would address this issue, and remove excessive rebuilds. As we've got a massive amount of idle jobs active this hits us hard every time a slave goes offline (for any reason), or when Jenkins is restarted (for any reason), and doesn't know its slaves yet.

      I'm willing to write the actual patch, but would need some advice on how to add that to the code in a manner consistent with the current ideas behind it (there seems to be some code in place already, but it's not connected to the config interface or seemingly doing very much).

          [JENKINS-15135] Support for "Poll on Master" for Subversion SCM plugin

          Andreas Kotes added a comment -

          Hi everyone. I need this bug/feature so much that I'm willing to pay 200.00 bucks for it.
          This offer is registered at FreedomSponsors (http://www.freedomsponsors.org/core/issue/137/support-for-poll-on-master-for-subversion-scm-plugin).
          Once you solve it (according to the acceptance criteria described there), just create a FreedomSponsors account and mark it as resolved (oh, you'll need a Paypal account too)
          I'll then check it out and will gladly pay up!

          If anyone else would like to throw in a few bucks to elevate the priority on this issue, you should check out FreedomSponsors!

          Andreas Kotes added a comment - Hi everyone. I need this bug/feature so much that I'm willing to pay 200.00 bucks for it. This offer is registered at FreedomSponsors ( http://www.freedomsponsors.org/core/issue/137/support-for-poll-on-master-for-subversion-scm-plugin ). Once you solve it (according to the acceptance criteria described there), just create a FreedomSponsors account and mark it as resolved (oh, you'll need a Paypal account too) I'll then check it out and will gladly pay up! If anyone else would like to throw in a few bucks to elevate the priority on this issue, you should check out FreedomSponsors!

          The code in the plugin does work. You need to set an environment variable, possible using one of the following methods:
          1. If you're using 'java -jar jenkins.war' to run jenkins then change your command to be 'java -Dhudson.scm.SubversionSCM.pollFromMaster=true -jar jenkins.war'
          2. Run 'set hudson.scm.SubversionSCM.pollFromMaster=true' (Windows) or 'export hudson.scm.SubversionSCM.pollFromMaster=true' (Unix) in your command shell before running 'java -jar jenkins.war' (or launching any container from that shell)
          2. Add an entry to the Windows environment variables of 'hudson.scm.SubversionSCM.pollFromMaster' with the value of 'true', or add it to your shell environment if you're on Unix/Linux environment to allow the variable to be picked up between restarts without manual intervention (this only needs done on the master AFAIK)
          3. If you're running Jenkins in a container then search for how to set environment variables in that container, you'll need something like the following if you're using Tomcat:

          <Context....>
          <Environment name="hudson.scm.SubversionSCM.pollFromMaster" type="java.lang.Boolean" value="true" override="true"/>
          </Context>

          There's a general aversion to adding additional checkboxes to the config screens since they're pretty full already, although I don't know if this is was you're looking for.

          Michael Clarke added a comment - The code in the plugin does work. You need to set an environment variable, possible using one of the following methods: 1. If you're using 'java -jar jenkins.war' to run jenkins then change your command to be 'java -Dhudson.scm.SubversionSCM.pollFromMaster=true -jar jenkins.war' 2. Run 'set hudson.scm.SubversionSCM.pollFromMaster=true' (Windows) or 'export hudson.scm.SubversionSCM.pollFromMaster=true' (Unix) in your command shell before running 'java -jar jenkins.war' (or launching any container from that shell) 2. Add an entry to the Windows environment variables of 'hudson.scm.SubversionSCM.pollFromMaster' with the value of 'true', or add it to your shell environment if you're on Unix/Linux environment to allow the variable to be picked up between restarts without manual intervention (this only needs done on the master AFAIK) 3. If you're running Jenkins in a container then search for how to set environment variables in that container, you'll need something like the following if you're using Tomcat: <Context....> <Environment name="hudson.scm.SubversionSCM.pollFromMaster" type="java.lang.Boolean" value="true" override="true"/> </Context> There's a general aversion to adding additional checkboxes to the config screens since they're pretty full already, although I don't know if this is was you're looking for.

            Unassigned Unassigned
            berlincount Andreas Kotes
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: