[JIRA] [kubernetes-plugin] (JENKINS-33649) ArrayIndexOutOfBoundsException building node selector map when field is empty on the configuration

2 views
Skip to first unread message

alobato@cloudbees.com (JIRA)

unread,
Mar 18, 2016, 7:17:03 AM3/18/16
to jenkinsc...@googlegroups.com
Alvaro Lobato created an issue
 
Jenkins / Bug JENKINS-33649
ArrayIndexOutOfBoundsException building node selector map when field is empty on the configuration
Issue Type: Bug Bug
Assignee: Carlos Sanchez
Components: kubernetes-plugin
Created: 2016/Mar/18 11:16 AM
Priority: Major Major
Reporter: Alvaro Lobato

ArrayIndexOutOfBoundsException is thrown building node selector map when the node selector field is empty on the advanced configuration configuration:

Mar 18, 2016 10:54:48 AM org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud$ProvisioningCallback call
SEVERE: Error in provisioning; slave=KubernetesSlave name: 
, template=org.csanchez.jenkins.plugins.kubernetes.PodTemplate@7fe4ab15
java.lang.ArrayIndexOutOfBoundsException: 1
	at org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud.getNodeSelectorMap(KubernetesCloud.java:284)
	at org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud.getPodTemplate(KubernetesCloud.java:266)
	at org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud.access$100(KubernetesCloud.java:60)
	at org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud$ProvisioningCallback.call(KubernetesCloud.java:352)
	at org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud$ProvisioningCallback.call(KubernetesCloud.java:334)
	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Tested with last codebase from master.

I think it was introduced on this commit: https://github.com/jenkinsci/kubernetes-plugin/commit/ca7653756aa6889ea3a069f6171fa698f569755a

I'll submit a PR with a fix.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

alobato@cloudbees.com (JIRA)

unread,
Mar 18, 2016, 11:36:02 AM3/18/16
to jenkinsc...@googlegroups.com

alobato@cloudbees.com (JIRA)

unread,
Mar 18, 2016, 11:37:01 AM3/18/16
to jenkinsc...@googlegroups.com

alobato@cloudbees.com (JIRA)

unread,
Mar 18, 2016, 11:37:01 AM3/18/16
to jenkinsc...@googlegroups.com
Alvaro Lobato started work on Bug JENKINS-33649
 
Change By: Alvaro Lobato
Status: Open In Progress

jenkins-ci@carlossanchez.eu (JIRA)

unread,
Apr 1, 2016, 8:26:01 AM4/1/16
to jenkinsc...@googlegroups.com
Carlos Sanchez closed an issue as Fixed
 

PR merged

Change By: Carlos Sanchez
Status: In Progress Closed
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages