• 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.

          [JENKINS-53205] Validate Pipeline Pod Template Values

          Adam Kaplan created issue -
          Adam Kaplan made changes -
          Attachment New: pipeline-classcast-err.log [ 43836 ]
          Adam Kaplan made changes -
          Description Original: 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.

          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|https://bugzilla.redhat.com/show_bug.cgi?id=1619617].
          New: 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|https://bugzilla.redhat.com/show_bug.cgi?id=1619617].
          Carlos Sanchez made changes -
          Link New: This issue is duplicated by JENKINS-53790 [ JENKINS-53790 ]
          Carlos Sanchez made changes -
          Link New: This issue is related to JENKINS-53790 [ JENKINS-53790 ]
          Carlos Sanchez made changes -
          Link Original: This issue is duplicated by JENKINS-53790 [ JENKINS-53790 ]
          Jesse Glick made changes -
          Assignee Original: Carlos Sanchez [ csanchez ]

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

              Created:
              Updated: