Existing Kubernetes pod templates get broken on upgrade to 1.27.2

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: kubernetes-plugin
    • None
    • Environment:
      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

            Assignee:
            Vincent Latombe
            Reporter:
            Aitor Pazos
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: