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

No way to specify build-args for dockerfile

    XMLWordPrintable

Details

    Description

      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'
          }
        }
      }

      Attachments

        Issue Links

          Activity

            People

              abayer Andrew Bayer
              nervo nervo nervo
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: