[JIRA] (JENKINS-61339) volumemount of workspace using subpath fails

8 views
Skip to first unread message

davidkarlsen@java.net (JIRA)

unread,
Mar 4, 2020, 7:33:02 PM3/4/20
to jenkinsc...@googlegroups.com
davidkarlsen updated an issue
 
Jenkins / Bug JENKINS-61339
volumemount of workspace using subpath fails
Change By: davidkarlsen
Priority: Minor Major
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

davidkarlsen@java.net (JIRA)

unread,
Mar 4, 2020, 7:33:03 PM3/4/20
to jenkinsc...@googlegroups.com
davidkarlsen created an issue
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: buildPod.yaml
Components: kubernetes-plugin
Created: 2020-03-05 00:32
Environment: CloudBees Jenkins Enterprise 2.176.4.3-rolling
k8s 1.13.9
Priority: Minor Minor
Reporter: davidkarlsen

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).

davidkarlsen@java.net (JIRA)

unread,
Mar 4, 2020, 7:35:02 PM3/4/20
to jenkinsc...@googlegroups.com
davidkarlsen updated an issue
Change By: davidkarlsen
Environment:
CloudBees Jenkins Enterprise 2.176.4.3-rolling
k8s 1.13.9

kubernetes plugin 1.18.3

jenkins-ci.org@mog.se (JIRA)

unread,
Mar 18, 2020, 6:13:03 AM3/18/20
to jenkinsc...@googlegroups.com
Morgan Christiansson commented on Bug JENKINS-61339
 
Re: 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.

Reply all
Reply to author
Forward
0 new messages