I have the same problem using mercurial with a freestyle project and also tried with a new project with no scm as a test with the same result. After a little digging found that changing

<canRoam>true</canRoam>

to

<canRoam>false</canRoam>

in the $JENKINS_HOME/jobs/$JOB_NAME/config.xml file gets the polling working again. Not sure why canRoam is set to true but looking at the source (https://github.com/jbrejner/jenkins-renamed/blob/master/core/src/main/java/hudson/model/AbstractProject.java#L1630)

it causes getAssignedLabel() to return null when the code is most likely expecting it to return Jenkins.getInstance().getSelfLabel(). Changing

if (allNodes.isEmpty() && !(label == Jenkins.getInstance().getSelfLabel())) { // no master/slave. pointless to talk about nodes label = null; }

to

if (allNodes.isEmpty() && label == null) { // no master/slave. pointless to talk about nodes label = Jenkins.getInstance().getSelfLabel(); }

may fix the issue but this is my first look at the jenkins source so don't have any idea what else this might affect and certainly haven't tested whether this would work, just a quick guess really.

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/d/optout.

Reply via email to