Additional Build arguments not working in Cloudbees Docker build and publish plugin 1.3.2

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Critical
    • Environment:
      Jenkins version - 2.32.3
      CloudBees Docker Build and Publish plugin version- 1.3.2
      Operating System - Ubuntu 14.04
      Java - 1.8
      Docker - 1.13.0

      In the Build step of Docker build and publish, there is an option to provide Additional build arguments but when I give 

      --build-arg https_proxy="http://some.proxy:port"

      It shows following error
      [Docker_test] $ docker build --build-arg https_proxy=http://some.proxy:port -t image/ob:latest --pull=true /var/lib/jenkins/workspace/Docker_test
      flag provided but not defined: --build-arg
      See 'docker build --help'.
      Build step 'Docker Build and Publish' marked build as failure
      Finished: FAILURE
      But when executed in shell command, the above mentioned command works fine

            Assignee:
            Carlos Sanchez
            Reporter:
            Saranya U
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: