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

Docker build on linux slave fails due to '\' backslash

XMLWordPrintable

      The plugin is failing while running on a linux slave node. I have the "Build Context" set to "helloworld/build". It appears somewhere alone the line that is being translated into "helloworld\build" which is causing issues on the linux agent. See log below.

      Plugin version 1.2.2 (latest)
      Docker version 1.8.2-el7, build a01dc02/1.8.2
      Note that I have a node in a different environment running docker 1.9.1 and I don't encounter this issue.

      docker build -t registry/repository/helloworld:v1.0.0 --no-cache=true --pull=true helloworld\build
      unable to prepare context: unable to evaluate symlinks in context path: lstat /var/appl/jenkins/workspace/workspace/helloworld\build: no such file or directory
      Build step 'Docker Build and Publish' marked build as failure
      [BFA] Scanning build for known causes...
      

            csanchez Carlos Sanchez
            mrichar2 Mark R
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: