jenkinsci / jenkinsci/docker-workflow-plugin
[JENKINS-50036] User id is forced when using dockerfile in pipeline
- 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:
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
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:
Related PR:
https://github.com/jenkinsci/docker-workflow-plugin/pull/57
https://github.com/jenkinsci/docker-workflow-plugin/pull/130
Thank you !
Contributor guide
Assessment
This issue has not been assessed yet.