validation:Fix jobs cleanup issue with permissions 86/3486/3
authorDANIEL STOICA <daniel.stoica@enea.com>
Tue, 19 May 2020 09:05:39 +0000 (12:05 +0300)
committerDaniel Stoica <daniel.stoica@enea.com>
Tue, 19 May 2020 13:22:25 +0000 (13:22 +0000)
Change the owner for the kube directory, because might be
owned by root, causing permission issues when Jenkins tries to
perform the workspace cleanup

Signed-off-by: DANIEL STOICA <daniel.stoica@enea.com>
Change-Id: I6fedecb633ab8ce78b03a9d8b9bec8ce9926bfcb

jjb/shell/run_bluval.sh

index 4b306a8..75d20eb 100755 (executable)
@@ -29,7 +29,7 @@ change_res_owner() {
 # change owner of results created by root in container
     if [ -d "$results_dir" ]
     then
-        sudo chown -R "$current_user" "$results_dir"
+        sudo chown -R "$current_user" "$results_dir" "$k8s_config_dir"
     fi
 }