declarative pod throwing error, following examples exactly...

32 views
Skip to first unread message

Gabe Nydick

unread,
Aug 30, 2018, 5:39:03 PM8/30/18
to jenkins...@googlegroups.com
Config below, getting the error immediately below. I'm interpreting the error as the yaml is malformed, but it doesn't appear to be.

hudson.remoting.ProxyException: com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token

 at [Source: java.io.BufferedInputStream@27e9e2dc; line: 12, column: 7] (through reference chain: io.fabric8.kubernetes.api.model.Pod["spec"]->io.fabric8.kubernetes.api.model.PodSpec["containers"]->java.util.ArrayList[0]->io.fabric8.kubernetes.api.model.Container["command"]->java.util.ArrayList[0])


ipeline {
agent {
kubernetes {
label 'jenkins-builder'
defaultContainer 'jnlp'
yaml """
apiVersion: v1
kind: Pod
metadata:
labels:
jenkins: slave
spec:
containers:
- name: kubectl
image: 850790058557.dkr.ecr.us-west-2.amazonaws.com/kubectl:latest
command:
- cat:
tty: true
- name: helm
image: 850790058557.dkr.ecr.us-west-2.amazonaws.com/helm:latest
command:
- cat:
tty: true
"""
}

Carlos Sanchez

unread,
Aug 31, 2018, 2:40:09 AM8/31/18
to jenkins...@googlegroups.com
Extra : after cat

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CACTWNKBvdB38Kx2kq340J8cQrHp3KsJ2WumsFxi64o5aMBz_vQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages