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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 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

            csanchez Carlos Sanchez
            saranya2293 Saranya U
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: