From 8b37db463610e488c691d741a3361a3496de3660 Mon Sep 17 00:00:00 2001 From: Mukul Sharma Date: Wed, 2 Sep 2026 15:04:34 +0530 Subject: [PATCH] Pin kubernetes-client-api plugin to fix agent launch NoSuchMethodError MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit kubernetes:4353.vb_47977da_9417 requires kubernetes-client-api >= 7.3.1-256.v788a_0b_787114 (confirmed via plugins.jenkins.io), but that plugin was never explicitly pinned in installPlugins — left to resolve on its own at image-build time, it landed on an older, incompatible version. Every build agent launch then crashed with NoSuchMethodError: ConfigBuilder.withMasterUrl(String) inside Reaper.preLaunch -> KubernetesCloud.connect -> KubernetesFactoryAdapter.createClient: pods provisioned fine at the Kubernetes API level, but the controller could never actually connect an agent to them, so every demo-go-app build hung forever at "Still waiting to schedule task". --- .../k8s-admin-prd-ase1/jenkins/custom-values.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/helm-overrides/k8s-admin-prd-ase1/jenkins/custom-values.yaml b/helm-overrides/k8s-admin-prd-ase1/jenkins/custom-values.yaml index 26ad4df..1ed0e25 100644 --- a/helm-overrides/k8s-admin-prd-ase1/jenkins/custom-values.yaml +++ b/helm-overrides/k8s-admin-prd-ase1/jenkins/custom-values.yaml @@ -23,8 +23,21 @@ jenkins: # above. Lists replace wholesale in Helm, not merge, so this is the # chart's full default list with just that one version corrected — # not a hand-picked subset. + # + # kubernetes-client-api added explicitly (not part of the chart's + # default list) — kubernetes:4353.vb_47977da_9417 requires + # kubernetes-client-api >= 7.3.1-256.v788a_0b_787114 (confirmed via + # https://plugins.jenkins.io/kubernetes/dependencies/), but left + # unpinned it resolved to an older version at image-build time, + # producing `NoSuchMethodError: + # ConfigBuilder.withMasterUrl(String)` on every agent launch attempt + # — pods provisioned fine but the controller crashed trying to + # actually connect the agent (Reaper.preLaunch -> KubernetesCloud.connect + # -> KubernetesFactoryAdapter.createClient), so builds hung forever at + # "Still waiting to schedule task". installPlugins: - kubernetes:4353.vb_47977da_9417 + - kubernetes-client-api:7.3.1-256.v788a_0b_787114 - workflow-aggregator:608.v67378e9d3db_1 - git:5.7.0 - configuration-as-code:2006.v001a_2ca_6b_574