Skip to content

Commit b23a6f0

Browse files
committed
Collect logs on Cirrus to investigate ProxyTest flakiness
1 parent 7266416 commit b23a6f0

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.cirrus.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ build_task:
4949
- regular_mvn_build_deploy_analyze
5050
cleanup_before_cache_script:
5151
- cleanup_maven_repository
52+
on_failure:
53+
junit_result_artifacts:
54+
path: "**/target/surefire-reports/**.xml"
55+
format: junit
56+
type: text/xml
5257

5358
mend_scan_task:
5459
depends_on:
@@ -101,8 +106,12 @@ qa_task:
101106
cleanup_before_cache_script:
102107
- cleanup_maven_repository
103108
on_failure:
104-
reports_artifacts:
105-
path: "**/target/**/logs/*"
109+
server_logs_artifacts:
110+
path: "**/target/**/logs/**.log"
111+
junit_result_artifacts:
112+
path: "**/target/surefire-reports/**.xml"
113+
format: junit
114+
type: text/xml
106115

107116
promote_task:
108117
depends_on:

its/it-tests/src/test/java/com/sonar/scanner/lib/it/ProxyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private static ServletContextHandler proxyHandler(boolean needProxyAuth) {
121121
return contextHandler;
122122
}
123123

124-
private static final SecurityHandler basicAuth(String username, String password, String realm) {
124+
private static SecurityHandler basicAuth(String username, String password, String realm) {
125125

126126
HashLoginService l = new HashLoginService(realm);
127127

0 commit comments

Comments
 (0)