diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-04-15 12:14:24 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-04-15 12:14:24 +0200 |
commit | 64617bf4c8c954defeb63d737c25531a0c9e127b (patch) | |
tree | 721e4c09b508eb4c64f3ccbd738b1d1121c84d05 /jjb/functest/xtesting.yaml | |
parent | 060f9d0f13519e5e180038ce2baa5f8ff7009c45 (diff) |
Set uid and gid to 1000 in all jobs
It works globally even if most of containers aren't
leveraging 1000 as uid (root is allowed to write
everywhere).
Change-Id: I8b2892cd9abc28a87417ad90a7dca6cd16dab319
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'jjb/functest/xtesting.yaml')
-rw-r--r-- | jjb/functest/xtesting.yaml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/jjb/functest/xtesting.yaml b/jjb/functest/xtesting.yaml index 0c75a839d..193ec2dab 100644 --- a/jjb/functest/xtesting.yaml +++ b/jjb/functest/xtesting.yaml @@ -73,6 +73,8 @@ volumes: '{volumes}' env: '{env}' network: '{network}' + uid: '{uid}' + gid: '{gid}' - builder: name: xtesting-pull-containers @@ -111,8 +113,8 @@ else image={repo}:{port}/{container}:{tag} fi - mkdir -p $WORKSPACE/results - chown 1000:1000 $WORKSPACE/results + sudo mkdir -p $WORKSPACE/results + sudo chown {uid}:{gid} $WORKSPACE/results sudo docker run --rm \ --privileged={privileged} \ --network={network} \ @@ -216,6 +218,8 @@ - eighth privileged: 'false' network: bridge + uid: 1000 + gid: 1000 exclude: - tag: leguer test: eighth @@ -247,6 +251,8 @@ - seventh privileged: 'false' network: bridge + uid: 1000 + gid: 1000 jobs: - 'xtesting-opnfv-xtesting-mts-{tag}-{test}-run' |