jenkinsci / jenkinsci/docker-plugin

[JENKINS-63824] running linux type dockerNode under windows node section causes failure due to workspace ambiguity

Open
#1,333 1 comment 0 reactions 0 assignees View on GitHub
component:docker-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
498
Forks
324
Avg merge
1d 2h
Merged PRs (30d)
2

Description

we have to following code:

node(some_windows_machine_label)

{
dockerNode('some_linux_image')
{
// here we perform git checkout using the checkout method.
}
}


running the above code using version 1.2.0 of docker plugin works fine, and running it using the new version (1.2.1) fails due to some workspace ambiguity (suddenly the dockerNode is aware of the windows node workspace..

 

moving the dockerNode section outside the node section works perfectly, but it costs us a lot to change all the scripts we already have...

I'll try to provide logs with the error.

I don't see any reason for this change of behavior...

 

---
Originally reported by amidar, imported from: running linux type dockerNode under windows node section causes failure due to workspace ambiguity


  • status: Open
  • priority: Major
  • component(s): docker-plugin
  • label(s): docker, git, workspace
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20260709-204134

Raw content of original issue

we have to following code:



node(some_windows_machine_label)

{
dockerNode('some_linux_image')
{
// here we perform git checkout using the checkout method.
}
}



running the above code using version 1.2.0 of docker plugin works fine, and running it using the new version (1.2.1) fails due to some workspace ambiguity (suddenly the dockerNode is aware of the windows node workspace..

 

moving the dockerNode section outside the node section works perfectly, but it costs us a lot to change all the scripts we already have...

I'll try to provide logs with the error.

I don't see any reason for this change of behavior...

 

environment

```
jenkins 2.249.1

docker plugin 1.2.1
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.