• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • kubernetes-plugin
    • None
    • CloudBees Jenkins Enterprise 2.176.4.3-rolling
      k8s 1.13.9
      kubernetes plugin 1.18.3

      I have a buildPod as attached.
      Two things:
      1) workspace path includes branch names etc - this makes it non-constant and hard to automate
      2) I use subpath to get the correct folder mounted at /docker-entrypoint-initdb.d in the mysql container, but it actually has no content - even if the path is correct (same volume shows up in the node container).

          [JENKINS-61339] volumemount of workspace using subpath fails

          Just use $WORKSPACE env var to get current workspace directory when inside container.

          You could also try to override the workspace dir or just mount volumes at fixed subpaths.

          This is not a bug.

          Morgan Christiansson added a comment - Just use $WORKSPACE env var to get current workspace directory when inside container. You could also try to override the workspace dir or just mount volumes at fixed subpaths. This is not a bug.

            Unassigned Unassigned
            davidkarlsen davidkarlsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: