jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-50036] User id is forced when using dockerfile in pipeline

Open
#560 1 comment 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
527
Forks
422
Avg merge
10m
Merged PRs (30d)
1

Description

User id should not be forced when using dockerfile in pipeline.

 

As it is not safe to match username (user id are incremented on each user creation, host and container may not have the same one)

 

Here is a very very very simple example not working :

https://github.com/FanchTheSystem/UserPipelineDockerTest/blob/master/Jenkinsfile

https://github.com/FanchTheSystem/UserPipelineDockerTest/blob/master/Dockerfile

 

Here is a simple and ugly working workarround :

https://github.com/FanchTheSystem/UserPipelineDockerTest/blob/master/Jenkinsfile.working

https://github.com/FanchTheSystem/UserPipelineDockerTest/blob/master/Dockerfile.working

 

Here is the method, I think should be deleted () from your source code:

https://github.com/ndeloof/docker-workflow-plugin/blob/master/src/main/java/org/jenkinsci/plugins/docker/workflow/client/DockerClient.java#L308

 

Related PR:

https://github.com/jenkinsci/docker-workflow-plugin/pull/57

https://github.com/jenkinsci/docker-workflow-plugin/pull/130

 

 

Thank you !

 

 

 

---
Originally reported by fanchthesytem, imported from: User id is forced when using dockerfile in pipeline


  • status: Open
  • priority: Minor
  • component(s): docker-workflow-plugin
  • resolution: Unresolved
  • votes: 3
  • watchers: 4
  • imported: 2025-12-07

Raw content of original issue

User id should not be forced when using dockerfile in pipeline.

 

As it is not safe to match username (user id are incremented on each user creation, host and container may not have the same one)

 

Here is a very very very simple example not working :

https://github.com/FanchTheSystem/UserPipelineDockerTest/blob/master/Jenkinsfile

https://github.com/FanchTheSystem/UserPipelineDockerTest/blob/master/Dockerfile

 

Here is a simple and ugly working workarround :

https://github.com/FanchTheSystem/UserPipelineDockerTest/blob/master/Jenkinsfile.working

https://github.com/FanchTheSystem/UserPipelineDockerTest/blob/master/Dockerfile.working

 

Here is the method, I think should be deleted () from your source code:

https://github.com/ndeloof/docker-workflow-plugin/blob/master/src/main/java/org/jenkinsci/plugins/docker/workflow/client/DockerClient.java#L308

 

Related PR:

https://github.com/jenkinsci/docker-workflow-plugin/pull/57

https://github.com/jenkinsci/docker-workflow-plugin/pull/130

 

 

Thank you !

 

 

 

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.