Browse Source

Use generic user for both zuul v2 and v3

Zuul v2 uses 'jenkins' as user, but Zuul v3 uses 'zuul'.
Using $USER solves it for both cases.

Change-Id: Id512c7b6a6c37128cfd6700473426b9fa56b36bb
Dai Dang Van 1 year ago
parent
commit
30d8866598
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      devstack/post_test_hook.sh

+ 1
- 1
devstack/post_test_hook.sh View File

@@ -21,7 +21,7 @@ function generate_testr_results {
21 21
         sudo /usr/os-testr-env/bin/subunit2html $BASE/logs/testrepository.subunit $BASE/logs/testr_results.html
22 22
         sudo gzip -9 $BASE/logs/testrepository.subunit
23 23
         sudo gzip -9 $BASE/logs/testr_results.html
24
-        sudo chown jenkins:jenkins $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz
24
+        sudo chown $USER:$USER $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz
25 25
         sudo chmod a+r $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz
26 26
     fi
27 27
 }

Loading…
Cancel
Save