Чтобы не скачивать артифкаты с отчетами Allure1, а просматривать их прямо в браузере, открывая из веб-интерфейса гитлаб, помогут следующие строки gitlab.rb:
1nginx['custom_gitlab_server_config'] = "location ~ /artifacts/file/.*\.(html|txt|md|css|js|jpg|jpeg|png|json)$ {
2 rewrite ^(.*)/file/(.*)$ $1/raw/$2 last;
3 return 500;
4}
5
6location ~ /artifacts/raw/.*\.(html|txt|md|css|js|jpg|jpeg|png|json)$ {
7 proxy_cache off;
8 proxy_pass http://gitlab-workhorse;
9 proxy_hide_header Content-Disposition;
10 add_header Content-Disposition 'inline;';
11}"
Далее нужно переконфигурировать GitLab:
1gitlab-ctl reconfigure
И теперь можно просматривать отчеты прямо из GitLab.