Force jenkins user on exec commands#160
Open
diorcety wants to merge 1 commit intojenkinsci:masterfrom
Open
Conversation
4bd30db to
da4a1b0
Compare
|
How can this be used with DSL? Obviously we can specify extra args, but will these allow overriding the user in the run stage? I guess one 'ideal' would be to take a |
58d8c8a to
bc59e1a
Compare
b75282f to
d43a093
Compare
Author
|
I rebased my PR on master |
|
Does this change break any existing usage? If so then it should be implemented conditionally, based on a new parameter etc. |
Author
|
This is break only the usage when the user force the user as image parameters with -u root:root for example. The current behaviour seems to be an issue for many people currently |
39963ee to
33cb834
Compare
1ec100b to
be15d7c
Compare
Author
|
Okay, I finally succeeded to test the behaviour. |
9b33ba2 to
897d4c7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
replace #130
Allow to specify an different user for the run
Will run
docker run -t -u 1001:1001 -u root:root ...
and
docker exec -u 1001:1001 ...