This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      Dockerfiles are allowed to have ARG directives before the FROM directive, in which case the value for FROM can reference build arguments:

      ARG TAG
      FROM alpine:$TAG

      Using docker.build('foo', '--build-arg TAG=3.7 .') in scripted pipeline on such a Dockerfile fails with:

      java.io.IOException: Cannot retrieve .Id from 'docker inspectalpine:$TAG'

            Assignee:
            Unassigned
            Reporter:
            Jakob Ovrum
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: