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

Running a project outside docker after specifying a dockerfile results in jenkins trying to run docker on the non-docker host

    Details

    • Similar Issues:

      Description

      I set up an example repository to demonstrate the problem: https://github.com/derphilipp/jenkins_docker_host_bug

       

      We assume we have a node/slave/agent to run docker on (label "docker")
      and a non-docker node/slave/agent (here: raspberrypi).

       

      Although the second step in the file has a different agent set, Jenkins still tries to call the docker command to set up something which results in file-not-found exception in Java (see README.md of the example project)

       

      In this example it could be fixed by specifying the node/agent/slave not for the whole pipeline but for the first step, but I want the use the default for every step in a longer Jenkinsfile.

        Attachments

          Issue Links

            Activity

            Hide
            derphilipp Philipp Weißmann added a comment -
            Show
            derphilipp Philipp Weißmann added a comment - Probably related to  https://issues.jenkins-ci.org/browse/JENKINS-46831
            Hide
            abayer Andrew Bayer added a comment -

            Yup, this is exactly the same root problem as JENKINS-46831, sadly.

            Show
            abayer Andrew Bayer added a comment - Yup, this is exactly the same root problem as JENKINS-46831 , sadly.
            Hide
            bitwiseman Liam Newman added a comment -

            Bulk closing resolved issues.

            Show
            bitwiseman Liam Newman added a comment - Bulk closing resolved issues.

              People

              • Assignee:
                Unassigned
                Reporter:
                derphilipp Philipp Weißmann
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: