I\'m using the declarative pipeline syntax to do some CI work inside a docker container.
I\'ve noticed that the Docker plugin for Jenkins runs a container using the
You can also add a block like this:
agent { dockerfile { args '-v /etc/passwd:/etc/passwd -v /etc/group:/etc/group' } }
That will allow the container to have the correct user and group ID.