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

Add support for build args in docker.build command

    XMLWordPrintable

Details

    Description

      For our CD needs, we need to supply the type of env when building the docker image.
      docker supports the concept of build args which you can specify using--build-arg in the docker build command.

      However, the docker.build command of this plugin does not currently have support for it.
      This is the improvement task to add this support

      Attachments

        Issue Links

          Activity

            Same here - that's an important missing feature for a CI system!

            derfunk Andreas Katzig added a comment - Same here - that's an important missing feature for a CI system!

            The Error message which is getting if we pass arguments without an ending  . is no helpful and misleading

                "docker build" requires exactly 1 argument(s).

            Is it possible to add a more meaningful error message

             Thank you 
             

            kalanamith Gayan Mannapperuma added a comment - The Error message which is getting if we pass arguments without an ending  . is no helpful and misleading     "docker build" requires exactly 1 argument(s). Is it possible to add a more meaningful error message  Thank you   

            People

              jglick Jesse Glick
              ptagr Punit Agrawal
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: