summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2022-04-15 10:25:57 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2022-04-15 10:25:57 +0200
commit060f9d0f13519e5e180038ce2baa5f8ff7009c45 (patch)
tree2f17b26d55998c6e9566bca048bd7ab262a40851
parent63f9569b21de275831ce545474fa35740076949e (diff)
Leverage non-root user in Xtesting containers
Change-Id: Ifefe173d563d4ec7098b47ec6df184d71f760fea Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--jjb/functest/functest-kubernetes-pi.yaml2
-rw-r--r--jjb/functest/functest-kubernetes.yaml2
-rw-r--r--jjb/functest/functest-pi.yaml2
-rw-r--r--jjb/functest/functest.yaml2
-rw-r--r--jjb/functest/xtesting-pi.yaml2
-rw-r--r--jjb/functest/xtesting.yaml4
6 files changed, 12 insertions, 2 deletions
diff --git a/jjb/functest/functest-kubernetes-pi.yaml b/jjb/functest/functest-kubernetes-pi.yaml
index 9e1c8714f..40b37c1e7 100644
--- a/jjb/functest/functest-kubernetes-pi.yaml
+++ b/jjb/functest/functest-kubernetes-pi.yaml
@@ -125,6 +125,8 @@
else
image={repo}:{port}/{container}:{tag}
fi
+ mkdir -p $WORKSPACE/results
+ chown 1000:1000 $WORKSPACE/results
docker run --rm \
--privileged={privileged} \
--network={network} \
diff --git a/jjb/functest/functest-kubernetes.yaml b/jjb/functest/functest-kubernetes.yaml
index 515afe3ab..dabe84494 100644
--- a/jjb/functest/functest-kubernetes.yaml
+++ b/jjb/functest/functest-kubernetes.yaml
@@ -125,6 +125,8 @@
else
image={repo}:{port}/{container}:{tag}
fi
+ mkdir -p $WORKSPACE/results
+ chown 1000:1000 $WORKSPACE/results
docker run --rm \
--privileged={privileged} \
--network={network} \
diff --git a/jjb/functest/functest-pi.yaml b/jjb/functest/functest-pi.yaml
index 6a2c667a4..9afca8f4f 100644
--- a/jjb/functest/functest-pi.yaml
+++ b/jjb/functest/functest-pi.yaml
@@ -151,6 +151,8 @@
else
image={repo}:{port}/{container}:{tag}
fi
+ mkdir -p $WORKSPACE/results
+ chown 1000:1000 $WORKSPACE/results
sudo docker run --rm \
--privileged={privileged} \
--network={network} \
diff --git a/jjb/functest/functest.yaml b/jjb/functest/functest.yaml
index 9e91d8ed0..bb5de274f 100644
--- a/jjb/functest/functest.yaml
+++ b/jjb/functest/functest.yaml
@@ -139,6 +139,8 @@
else
image={repo}:{port}/{container}:{tag}
fi
+ mkdir -p $WORKSPACE/results
+ chown 1000:1000 $WORKSPACE/results
sudo docker run --rm \
--privileged={privileged} \
--network={network} \
diff --git a/jjb/functest/xtesting-pi.yaml b/jjb/functest/xtesting-pi.yaml
index 2c0fec615..7b16e848f 100644
--- a/jjb/functest/xtesting-pi.yaml
+++ b/jjb/functest/xtesting-pi.yaml
@@ -111,6 +111,8 @@
else
image={repo}:{port}/{container}:{tag}
fi
+ mkdir -p $WORKSPACE/results
+ chown 1000:1000 $WORKSPACE/results
sudo docker run --rm \
--privileged={privileged} \
--network={network} \
diff --git a/jjb/functest/xtesting.yaml b/jjb/functest/xtesting.yaml
index e012b2a9c..0c75a839d 100644
--- a/jjb/functest/xtesting.yaml
+++ b/jjb/functest/xtesting.yaml
@@ -111,8 +111,8 @@
else
image={repo}:{port}/{container}:{tag}
fi
- mkdir -p $WORKSPACE/../$JOB_NAME/results
- chown opnfv: $WORKSPACE/../$JOB_NAME/results
+ mkdir -p $WORKSPACE/results
+ chown 1000:1000 $WORKSPACE/results
sudo docker run --rm \
--privileged={privileged} \
--network={network} \