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

Validate Pipeline Pod Template Values

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • kubernetes-plugin
    • None
    • Jenkins 2.x
      kubernetes plugin: 1.12.1

      As a developer
      I want the kubernetes plugin to validate the values in my pipeline pod template
      So that I don't have to run a build in order to see errors in my pipeline file

      As a developer
      I want to use common aliases in my pipeline file
      So that simple typo errors do not cause a Jenkins Pipeline build to break


      The kubernetes plugin doesn't perform any kind of validation on the values set in a pipeline definition. This can result in build time ClassCastException errors if the pod template includes values that do not map to a Java primitive (such as PodRetention). See attached error log.

      The plugin should be enhanced to validate these inputs and report actionable errors when the pipeline is created or updated.

      The plugin should also add aliases to pipeline objects so that common typographic errors are permitted (ex: setting a pod template's podRetention to Never() instead of never())

      Originally reported as OpenShift Bug 1619617.

            Unassigned Unassigned
            adambkaplan Adam Kaplan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: