[JIRA] (JENKINS-53205) Validate Pipeline Pod Template Values

2 views
Skip to first unread message

adam.kaplan@redhat.com (JIRA)

unread,
Aug 23, 2018, 8:55:02 AM8/23/18
to jenkinsc...@googlegroups.com
Adam Kaplan updated an issue
 
Jenkins / Improvement JENKINS-53205
Validate Pipeline Pod Template Values
Change By: Adam Kaplan
Attachment: pipeline-classcast-err.log
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

adam.kaplan@redhat.com (JIRA)

unread,
Aug 23, 2018, 8:55:02 AM8/23/18
to jenkinsc...@googlegroups.com
Adam Kaplan created an issue
Issue Type: Improvement Improvement
Assignee: Carlos Sanchez
Attachments: pipeline-classcast-err.log
Components: kubernetes-plugin
Created: 2018-08-23 12:54
Environment: Jenkins 2.x
kubernetes plugin: 1.12.1
Priority: Minor Minor
Reporter: Adam Kaplan

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.

adam.kaplan@redhat.com (JIRA)

unread,
Aug 23, 2018, 8:56:02 AM8/23/18
to jenkinsc...@googlegroups.com
Adam Kaplan updated an issue
Change By: Adam Kaplan
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].

jglick@cloudbees.com (JIRA)

unread,
Jul 16, 2019, 3:43:25 PM7/16/19
to jenkinsc...@googlegroups.com
Jesse Glick assigned an issue to Unassigned
Change By: Jesse Glick
Assignee: Carlos Sanchez
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages