No way to specify build-args for dockerfile

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

XMLWordPrintable

      It looks like there is no way to specify some build args (--build-arg parameter for docker build) to build an image using the "dockerfile" option. It supports "args", but only to pass to subsequents docker run calls.

      pipeline {
        agent {
          dockerfile {
            filename 'foo/Dockerfile'
            args: '--privileged'
          }
        }
      }

            Assignee:
            Andrew Bayer
            Reporter:
            nervo nervo
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: