docker.build().inside() not run "inside" in Jenkins within Docker

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      My Jenkins is within a Docker container, and I try to run docker.build(...).inside(...) in it, but the inside bit does not run within the newly built container. I know, because pwd gives me:  /var/jenkins_home/workspace/youtube-delete-tracker_jenkins which is clearly the Jenkins container.

      I've tried this both in imperative and declarative style.

      I have a lot more details in a StackOverflow question: https://stackoverflow.com/questions/53950128/jenkins-within-docker-dockerfile-agent-happens-outside-new-container

            Assignee:
            Unassigned
            Reporter:
            Attila Szeremi
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: