-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-47178] Replace Windows path separator with Unix path separator #308
Conversation
What issue is this fixing? Would be great to add a test as well. |
@Vlatombe: If the Jenkins master is running on a Windows machine, the |
|
@Vlatombe: And regarding tests, are there any tests that are currently testing volume creation? |
@TheOriginalAlex Thanks for providing the context. @carlossg I guess the best way to handle such problems would be to have a tests running on windows. |
That test is already passing on windows, maybe needs some extra checks |
@carlossg ah right, it's loading definition from yaml files, so it doesn't go through the path getting changed here. Probably just a matter of creating a new test case that is declaring a volume mount using the |
@TheOriginalAlex yes, it would be great to avoid regressions. |
Wouldn't making this
|
Or is there a specific reason why only the string version of the yaml is stored in the object? |
The yaml allows to support any kind of field supported by kubernetes that may not be implemented by the plugin. |
@Vlatombe: Got it! Thanks for the clarification! |
import static org.csanchez.jenkins.plugins.kubernetes.volumes.HostPathVolume.*; | ||
import static org.csanchez.jenkins.plugins.kubernetes.volumes.EmptyDirVolume.*; | ||
import static org.csanchez.jenkins.plugins.kubernetes.volumes.PodVolume.*; | ||
import static org.csanchez.jenkins.plugins.kubernetes.volumes.ContainerTemplate.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong package name
the test is failing with
|
mount paths Signed-off-by: Alex Johnson <ajohnson@bombora.com>
@carlossg: Finally got around to fixing the tests... sorry about the delay! |
thanks! |
Use Unix path separator in volume mount paths
Signed-off-by: Alex Johnson ajohnson@bombora.com