1. Command line executable. Git version 1.8.4.4

Other observation: We use the multiple SCMs plugin. Which is known to be problematic. In this case the issue is not isolated to jobs that use that plugin. All jobs are affected.

I've adding the DisableRemotePoll option to all jobs. This resolved the issue for me. The script I used is:

import jenkins.model.*;
import hudson.model.*;
import hudson.tasks.*;
import hudson.plugins.git.*;
import hudson.plugins.git.extensions.impl. DisableRemotePoll;

def updateScm(project, scm) {
    println("updating " + scm.toString() + " for project " + project);
    remote_poll_opt = new DisableRemotePoll();
    scm.extensions.add(remote_poll_opt);
    project.save();
}

for(project in Hudson.instance.items) {
  scm = project.scm;
  if (scm instanceof org.jenkinsci.plugins.multiplescms.MultiSCM) {
    for(actual_scm in scm.getConfiguredSCMs())
      updateScm(project, (GitSCM)actual_scm);
  } else if (scm instanceof hudson.plugins.git.GitSCM) {
      updateScm(project, (GitSCM)scm);    
  } else {
    println("unknown scm type " + scm.toString());
  }
}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to