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

Container template not using correct version of image specified.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • kubernetes-plugin
    • None

      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.  

            csanchez Carlos Sanchez
            rodrigda David Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: