Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Blocker
-
Resolution: Duplicate
-
Component/s: kubernetes-plugin
-
Labels:None
-
Similar Issues:
Description
I have update the version of the image I am using for my container and it's not being used when Jenkins spins up the slave. I have the following
```
containerTemplate(name: 'embedded-builder', image: 'embedded-builder:1.1.4', envVars: [envVar(key: 'BRANCH_NAME', value: "$BRANCH_NAME"),envVar(key: 'J_CREDS_IDS', value: "$J_CREDS_IDS")], ttyEnabled: true, command: 'cat', alwaysPullImage: true, workingDir: '/home/jenkins')```
But when the job runs I describe the slave pod and I see that the container is using an older version.
``` Normal Pulling 1m kubelet, ip-172-20-103-179.ec2.internal pulling image "embedded-builder:1.1.2"
Normal Pulled 1m kubelet, ip-172-20-103-179.ec2.internal Successfully pulled image "embedded-builder:1.1.2"```
I have tried restarting jenkins, switching the image version to be latest and nothing seems to be making it budge. Any thoughts on what to try would be greatly appreciated.
Attachments
Issue Links
- duplicates
-
JENKINS-47759 Updating podTemplate does not immediately come into effect.
-
- Resolved
-
Use a uuid as label https://github.com/jenkinsci/kubernetes-plugin/blob/master/README.md#pipeline-support