Commit d989e06
committed
Chown workspace for non-root containers
When running jobs on Kubernetes containers instead of the Jenkins built-in node,
containers running as a non-root user have problems cleaning the workspace.
Run chown on jnlp so the workspace matches runAsUser/runAsGroup before forceCleanupWS.
Signed-off-by: Noam Tsemah <ntsemah@nvidia.com>1 parent 839904f commit d989e06
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
900 | 900 | | |
901 | 901 | | |
902 | 902 | | |
| 903 | + | |
| 904 | + | |
903 | 905 | | |
904 | 906 | | |
| 907 | + | |
| 908 | + | |
905 | 909 | | |
906 | 910 | | |
907 | 911 | | |
| |||
913 | 917 | | |
914 | 918 | | |
915 | 919 | | |
| 920 | + | |
| 921 | + | |
916 | 922 | | |
917 | 923 | | |
918 | 924 | | |
| |||
940 | 946 | | |
941 | 947 | | |
942 | 948 | | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
943 | 958 | | |
944 | 959 | | |
945 | 960 | | |
| |||
0 commit comments