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

Container template not using correct version of image specified.

    XMLWordPrintable

    Details

    • 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

            Activity

            Show
            csanchez Carlos Sanchez added a comment - Use a uuid as label https://github.com/jenkinsci/kubernetes-plugin/blob/master/README.md#pipeline-support

              People

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

                Dates

                Created:
                Updated:
                Resolved: