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: Ifb7fb3c7028054e773c0f5a0e8c29807b5d187d3
Dai Dang Van
5 years ago
11 | 11 | sudo /usr/os-testr-env/bin/subunit2html $BASE/logs/testrepository.subunit $BASE/logs/testr_results.html |
12 | 12 | sudo gzip -9 $BASE/logs/testrepository.subunit |
13 | 13 | sudo gzip -9 $BASE/logs/testr_results.html |
14 | sudo chown jenkins:jenkins $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz | |
14 | sudo chown $USER:$USER $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz | |
15 | 15 | sudo chmod a+r $BASE/logs/testrepository.subunit.gz $BASE/logs/testr_results.html.gz |
16 | 16 | fi |
17 | 17 | } |