-
Type: Task
-
Status: Resolved
-
Priority: Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Continuous Integration
-
Tags:
-
Sprint:nxplatform #96
-
Story Points:1
To fix some security advisories, and the error below happening after an automatic upgrade of the the snakeyaml plugin from 1.33-95.va_b_a_e3e47b_fa_4 to 2.2-111.vc6598e30cc65, see the release notes:
2023-09-07 07:22:22.694+0000 [id=217084] WARNING o.c.j.p.k.KubernetesLauncher#launch: Error in provisioning; agent=KubernetesSlave name: base-x2qb5, template=PodTemplate{id='base', name='base', label='jenkins-base', serviceAccount='jenkins', nodeSelector='team=platform', volumes=[EmptyDirVolume [mountPath=/certs, memory=null], EmptyDirVolume [mountPath=/var/lib/docker, memory=null], org.csanchez.jenkins.plugins.kubernetes.volumes.ConfigMapVolume@2521b4, SecretVolume [mountPath=/home/jenkins/.docker, secretName=jenkins-docker-cfg, defaultMode=null, optional=null]], containers=[ContainerTemplate{name='jnlp', image='jenkins/inbound-agent:4.11.2-4', workingDir='/home/jenkins', command='', args='${computer.jnlpmac} ${computer.name}', resourceRequestCpu='100m', resourceRequestMemory='128Mi'}, ContainerTemplate{name='dind-daemon', image='docker:dind', privileged=true, workingDir='/home/jenkins', command='', args='', resourceRequestCpu='20m', resourceRequestMemory='512Mi'}, ContainerTemplate{name='base', image='docker.platform.dev.nuxeo.com/nuxeo/builder-base-rockylinux9:latest', privileged=true, alwaysPullImage=true, workingDir='/home/jenkins', command='/bin/sh -c', args='cat', ttyEnabled=true, resourceRequestCpu='250m', resourceRequestMemory='1Gi', resourceLimitCpu='1', resourceLimitMemory='1Gi'}], envVars=[KeyValueEnvVar [getValue()=/certs/client, getKey()=DOCKER_CERT_PATH], KeyValueEnvVar [getValue()=/home/jenkins/.docker/, getKey()=DOCKER_CONFIG], KeyValueEnvVar [getValue()=tcp://localhost:2376, getKey()=DOCKER_HOST], KeyValueEnvVar [getValue()=1, getKey()=DOCKER_TLS_VERIFY], KeyValueEnvVar [getValue()=platform+jx-bot@nuxeo.com, getKey()=GIT_AUTHOR_EMAIL], KeyValueEnvVar [getValue()=nuxeo-platform-jx-bot, getKey()=GIT_AUTHOR_NAME], KeyValueEnvVar [getValue()=platform+jx-bot@nuxeo.com, getKey()=GIT_COMMITTER_EMAIL], KeyValueEnvVar [getValue()=nuxeo-platform-jx-bot, getKey()=GIT_COMMITTER_NAME], KeyValueEnvVar [getValue()=/home/jenkins, getKey()=XDG_CONFIG_HOME], KeyValueEnvVar [getValue()=http://jenkins:8080, getKey()=JENKINS_URL], KeyValueEnvVar [getValue()=base, getKey()=DEFAULT_CONTAINER]], imagePullSecrets=[PodImagePullSecret{name='kubernetes-docker-cfg'}]} java.lang.NoSuchMethodError: org.yaml.snakeyaml.constructor.SafeConstructor: method 'void <init>()' not found at io.fabric8.kubernetes.client.utils.Serialization.unmarshal(Serialization.java:256) at io.fabric8.kubernetes.client.utils.Serialization.unmarshal(Serialization.java:387) at io.fabric8.kubernetes.client.utils.Serialization.unmarshal(Serialization.java:353) at io.fabric8.kubernetes.client.utils.Serialization.unmarshal(Serialization.java:337) at io.fabric8.kubernetes.client.dsl.internal.OperationSupport.unmarshal(OperationSupport.java:753) at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.load(BaseOperation.java:261) at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.load(BaseOperation.java:93) at org.csanchez.jenkins.plugins.kubernetes.PodTemplateUtils.parseFromYaml(PodTemplateUtils.java:610) at org.csanchez.jenkins.plugins.kubernetes.pod.yaml.Overrides.merge(Overrides.java:26) at org.csanchez.jenkins.plugins.kubernetes.PodTemplate.getYamlsPod(PodTemplate.java:198) at org.csanchez.jenkins.plugins.kubernetes.PodTemplateBuilder.build(PodTemplateBuilder.java:293) at org.csanchez.jenkins.plugins.kubernetes.PodTemplate.build(PodTemplate.java:902) at org.csanchez.jenkins.plugins.kubernetes.KubernetesLauncher.launch(KubernetesLauncher.java:119)
We also need to follow the matrix-auth plugin breaking changes.
See the Jenkins 2.414.1 release notes.