From 15f7d4f16b843b8799054035daed4b936ca8bb72 Mon Sep 17 00:00:00 2001
From: "gioacchino.vino" <gioacchino.vino@infn.it>
Date: Mon, 6 Nov 2023 18:41:06 +0100
Subject: [PATCH 1/2] Created jenkins user in dockerfile

---
 utils/Dockerfile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/utils/Dockerfile b/utils/Dockerfile
index 78cd7e2..adb8ee1 100644
--- a/utils/Dockerfile
+++ b/utils/Dockerfile
@@ -9,4 +9,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update \
     && rm orchent_${ORCHENT_VERSION}_amd64.deb \
     && apt-get clean && rm -rf /var/lib/apt/lists/*
 
-RUN pip install gvm-tools jq yq
\ No newline at end of file
+RUN pip install gvm-tools jq yq
+
+RUN useradd jenkins
+
+USER jenkins
+
+
-- 
GitLab


From 73d7e74727375aba1539c0db2237fc908de3df15 Mon Sep 17 00:00:00 2001
From: "gioacchino.vino" <gioacchino.vino@infn.it>
Date: Mon, 13 Nov 2023 16:53:43 +0100
Subject: [PATCH 2/2] create workspace directory

---
 tasks/1-create-deployment.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tasks/1-create-deployment.yml b/tasks/1-create-deployment.yml
index 703189a..26af13d 100644
--- a/tasks/1-create-deployment.yml
+++ b/tasks/1-create-deployment.yml
@@ -1,4 +1,9 @@
 ---
+- name: Create workspace directory if not exists
+  file:
+    path: "{{ paas_ci_workdir }}"
+    state: directory
+
 - name: Get template
   get_url:
     url: "{{ paas_ci_test.template_url }}"
-- 
GitLab