When I tried to pass a (predefined) variable e.g. $APP_NAME or $TAG to the docker command "Pull Image", it seems that this variables are not resolved. They occure on the remote console as $TAG and $APP_NAME.

      Is this a bug our could you maybe implement this? I'm trying to implement a generic deployment process thus I Need this Feature.

      Thank you!

      Kind regards,

      Tobias

          [JENKINS-24800] docker plugin accept variables in pull image

          Dave Shepherd added a comment -

          I think this has been fixed.

          I tested it by creating a job with two parameters: APP_NAME and TAG

          Added a "Pull image" step that defined the following:

          • Name of the image to pull (repository/image): $APP_NAME
          • Tag: $TAG

          The values of the parameters are used when this step is executed and is successful when the appropriate values are specified, e.g. APP_NAME=busybox, TAG=latest

          Jenkins v1.604
          docker-build-step plugin v1.23

          Dave Shepherd added a comment - I think this has been fixed. I tested it by creating a job with two parameters: APP_NAME and TAG Added a "Pull image" step that defined the following: Name of the image to pull (repository/image): $APP_NAME Tag: $TAG The values of the parameters are used when this step is executed and is successful when the appropriate values are specified, e.g. APP_NAME=busybox, TAG=latest Jenkins v1.604 docker-build-step plugin v1.23

            vjuranek vjuranek
            tobias_schaber tobias schaber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: