Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50036

User id is forced when using dockerfile in pipeline

XMLWordPrintable

      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 !

       

       

       

            Unassigned Unassigned
            fanchthesytem Fanch GERBES
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: