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

Existing Kubernetes pod templates get broken on upgrade to 1.27.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • kubernetes-plugin
    • None
    • Jenkins: 2.249.2
      Kubernetes-plugin: 1.27.2
    • 1.27.6, 1.28.2

      Right after upgrading Kubernetes-plugin and restarting Jenkins, kuberentes cloud builds started failing with the following error:

      java.lang.NullPointerException10:14:52      at org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud.lambda$getTemplateById$2(KubernetesCloud.java:654)

      After re-creating the cloud templates, it worked fine. Possibly related with the lack of UUID in pre-existing templates as introduced in https://github.com/jenkinsci/kubernetes-plugin/commit/2cfefd1a78feb26b3a135baea31237647c11d142

            vlatombe Vincent Latombe
            aitorpazos Aitor Pazos
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: