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

Jenkins builds broke for kubernetes after updating Jackson2 api plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • jackson2-api-plugin
    • None

      After updating jackson2 api plugin to Jackson 2 API PluginVersion2.14.2-319.v37853346a_229, all our jenkins build on top of Kubernetes are getting failed. Error - 

      hudson.remoting.ProxyException: io.fabric8.kubernetes.client.KubernetesClientException: name not specified for an operation requiring one. 13:27:43 at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.requireFromServer(BaseOperation.java:182) 13:27:43 at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.get(BaseOperation.java:142) 13:27:43 at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.get(BaseOperation.java:93) 13:27:43 at org.csanchez.jenkins.plugins.kubernetes.PodTemplateUtils.parseFromYaml(PodTemplateUtils.java:605) 13:27:43 at org.csanchez.jenkins.plugins.kubernetes.PodTemplateUtils.validateYamlContainerNames(PodTemplateUtils.java:634) 13:27:43 at org.csanchez.jenkins.plugins.kubernetes.PodTemplateUtils.validateYamlContainerNames(PodTemplateUtils.java:624) 13:27:43 at org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateStepExecution.start(PodTemplateStepExecution.java:145) 13:27:43 at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:322) 13:27:43 at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:196) 13:27:43 at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:124) 13:27:43 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:47) 13:27:43 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) 13:27:43 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) 13:27:43 at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20) 13:27:43 Caused: hudson.remoting.ProxyException: java.lang.RuntimeException: Failed to parse yaml: "apiVersion: v1 13:27:43 kind: Pod 13:27:43 spec: 13:27:43 serviceAccountName: jenkins 13:27:43 containers: 13:27:43 - name: jnlp 13:27:43 image: mpcorpuse2corecr.azurecr.io/marcel/jenkins-slave:v0.4 13:27:43 env: 13:27:43 - name: JAVA_OPTS 13:27:43 value: "Dorg.jenkinsci.plugins.gitclient.Git.timeOut=60 -Dhttp.sslVerify=false" 13:27:43 - name: node-12-13-0 13:27:43 image: node:12.13.0 13:27:43 resources: 13:27:43 requests: 13:27:43 cpu: "500m" 13:27:43 memory: "1028Mi" 13:27:43 limits: 13:27:43 cpu: "1000m" 13:27:43 memory: "1028Mi" 13:27:43 command: 13:27:43 - cat 13:27:43 tty: true 13:27:43 securityContext: 13:27:43 runAsUser: 1000 13:27:43 runAsGroup: 1000 13:27:43 - name: node-14-15-1 13:27:43 image: node:14.15.1 13:27:43 command: 13:27:43 - cat 13:27:43 tty: true 13:27:43 securityContext: 13:27:43 runAsUser: 1000 13:27:43 runAsGroup: 1000 13:27:43 - name: node-14-17-1 13:27:43 image: mpcorpuse2corecr.azurecr.io/devops/node:14.17.1.chrome.npm.curl 13:27:43 env: 13:27:43 - name: NODE_OPTIONS 13:27:43 value: "max_old_space_size=4096" 13:27:43 command: 13:27:43 - cat 13:27:43 tty: true 13:27:43 securityContext: 13:27:43 runAsUser: 1000 13:27:43 runAsGroup: 1000 13:27:43 - name: node-14-17-0 13:27:43 image: mpcorpuse2corecr.azurecr.io/devops/node.14.17.1-smbclient:latest 13:27:43 env: 13:27:43 - name: NODE_OPTIONS 13:27:43 value: "max_old_space_size=4096" 13:27:43 command: 13:27:43 - cat 13:27:43 tty: true 13:27:43 securityContext: 13:27:43 runAsUser: 1000 13:27:43 runAsGroup: 1000 13:27:43 - name: node-16-15-1 13:27:43 image: node:16.15.1 13:27:43 env: 13:27:43 - name: NODE_OPTIONS 13:27:43 value: "-max_old_space_size=4096" 13:27:43 command: 13:27:43 - cat 13:27:43 tty: true 13:27:43 securityContext: 13:27:43 runAsUser: 1000 13:27:43 runAsGroup: 1000 13:27:43 - name: busybox 13:27:43 image: busybox 13:27:43 command: 13:27:43 - cat 13:27:43 tty: true 13:27:43 - name: zip 13:27:43 image: kramos/alpine-zip 13:27:43 command: 13:27:43 - cat 13:27:43 tty: true 13:27:43 - name: liquibase 13:27:43 image: mpcorpuse2corecr.azurecr.io/dbcr/liquibase:1.0 13:27:43 command: 13:27:43 - cat 13:27:43 tty: true 13:27:43 - name: liquibase-neo4j 13:27:43 image: mpcorpuse2corecr.azurecr.io/dbcr/liquibase-neo4j:1.1 13:27:43 command: 13:27:43 - cat 13:27:43 tty: true 13:27:43 - name: maven 13:27:43 image: maven:3.6.3-jdk-8 13:27:43 command: 13:27:43 - cat 13:27:43 tty: true 13:27:43 volumeMounts: 13:27:43 - name: jenkins-cache-pvc 13:27:43 mountPath: /var/mavenLocalRepo 13:27:43 subPath: maven 13:27:43 - name: sonar-scanner 13:27:43 image: newtmitch/sonar-scanner:4.5 13:27:43 command: 13:27:43 - cat 13:27:43 tty: true 13:27:43 volumeMounts: 13:27:43 - name: jenkins-cache-pvc 13:27:43 mountPath: /root/.sonar 13:27:43 subPath: sonar 13:27:43 - name: helm-kubectl 13:27:43 image: dtzar/helm-kubectl:3.2.4 13:27:43 command: 13:27:43 - cat 13:27:43 tty: true 13:27:43 - name: kaniko 13:27:43 image: gcr.io/kaniko-project/executor:debug 13:27:43 imagePullPolicy: Always 13:27:43 command: 13:27:43 - /busybox/cat 13:27:43 tty: true 13:27:43 volumeMounts: 13:27:43 - name: jenkins-docker-cfg 13:27:43 mountPath: /kaniko/.docker 13:27:43 imagePullSecrets: 13:27:43 - name: mpcorpuse2corecr.azurecr.io 13:27:43 volumes: 13:27:43 - emptyDir: {} 13:27:43 name: maven-local-repo 13:27:43 - name: jenkins-cache-pvc 13:27:43 persistentVolumeClaim: 13:27:43 claimName: jenkins-cache-pvc 13:27:43 - name: jenkins-docker-cfg 13:27:43 projected: 13:27:43 sources: 13:27:43 - secret: 13:27:43 name: registry-credentials 13:27:43 items: 13:27:43 - key: .dockerconfigjson 13:27:43 path: config.json 13:27:43 " 13:27:43 at org.csanchez.jenkins.plugins.kubernetes.PodTemplateUtils.parseFromYaml(PodTemplateUtils.java:607) 13:27:43 at org.csanchez.jenkins.plugins.kubernetes.PodTemplateUtils.validateYamlContainerNames(PodTemplateUtils.java:634) 13:27:43 at org.csanchez.jenkins.plugins.kubernetes.PodTemplateUtils.validateYamlContainerNames(PodTemplateUtils.java:624) 13:27:43 at org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateStepExecution.start(PodTemplateStepExecution.java:145) 13:27:43 at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:322) 13:27:43 at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:196) 13:27:43 at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:124) 13:27:43 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:47) 13:27:43 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) 13:27:43 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) 13:27:43 at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20) 13:27:43 at org.csanchez.jenkins.plugins.kubernetes.pipeline.KubernetesDeclarativeAgentScript.run(KubernetesDeclarativeAgentScript.groovy:51) 13:27:43 at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.inDeclarativeAgent(ModelInterpreter.groovy:594) 13:27:43 at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.call(ModelInterpreter.groovy:76) 13:27:43 at nodeBuildPipeline.call(nodeBuildPipeline.groovy:19) 13:27:43 at WorkflowScript.run(WorkflowScript:13) 13:27:43 at _{}cps.transform{}_(Native Method) 13:27:43 at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86) 13:27:43 at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113) 13:27:43 at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83) 13:27:43 at jdk.internal.reflect.GeneratedMethodAccessor502.invoke(Unknown Source) 13:27:43 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 13:27:43 at java.base/java.lang.reflect.Method.invoke(Method.java:566) 13:27:43 at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) 13:27:43 at com.cloudbees.groovy.cps.impl.ClosureBlock.eval(ClosureBlock.java:46) 13:27:43 at com.cloudbees.groovy.cps.Next.step(Next.java:83) 13:27:43 at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174) 13:27:43 at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163) 13:27:43 at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:136) 13:27:43 at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:275) 13:27:43 at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163) 13:27:43 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18) 13:27:43 at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51) 13:27:43 at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:187) 13:27:43 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:420) 13:27:43 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:95) 13:27:43 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:330) 13:27:43 at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:294) 13:27:43 at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67) 13:27:43 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 13:27:43 at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139) 13:27:43 at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) 13:27:43 at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) 13:27:43 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 13:27:43 at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 13:27:43 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 13:27:43 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 13:27:43 at java.base/java.lang.Thread.run(Thread.java:829) 13:27:43 [Bitbucket] Notifying pull request build result 13:27:44 [Bitbucket] Build result notified 13:27:44 Finished: FAILURE

       

      Jenkins Version - 2.334

            Unassigned Unassigned
            agam14 Agam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: