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

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Labels:
    • 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
    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          csanchez Carlos Sanchez added a comment -

          have an old version of docker in the agent where this is run ?

          Show
          csanchez Carlos Sanchez added a comment - have an old version of docker in the agent where this is run ?
          Hide
          saranya2293 Saranya U added a comment -

          Docker version is 1.13.0

          Show
          saranya2293 Saranya U added a comment - Docker version is 1.13.0
          Hide
          saranya2293 Saranya U added a comment - - edited

          Any update on this??

          Show
          saranya2293 Saranya U added a comment - - edited Any update on this??

            People

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

              Dates

              Created:
              Updated: