]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20855 uploading logs on failure on cirrus
authorlukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com>
Thu, 26 Oct 2023 12:55:02 +0000 (14:55 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 27 Oct 2023 20:03:00 +0000 (20:03 +0000)
.cirrus.yml
server/sonar-webserver/src/main/java/org/sonar/server/app/TomcatAccessLog.java

index 9259997a475f70a9bfe88218459d1935ac429ddd..11b32b50398ab0c49051dd3247adcfe5070c6293 100644 (file)
@@ -166,6 +166,8 @@ default_artifact_template: &DEFAULT_ARTIFACTS_TEMPLATE
       path: "**/build/reports/**/*"
     screenshots_artifacts:
       path: "**/build/screenshots/**/*"
+    log_artifacts:
+      path: "**/build/**/*.log"
   always:
     profile_artifacts:
       path: "**/build/reports/profile/**/*"
index 60a9bdf7621e35cd91c84303a54e3c12259a2fc1..1291477c37326eab928f5bc30ac9dac4dfd068e6 100644 (file)
@@ -33,7 +33,7 @@ class TomcatAccessLog {
 
   private static final String PROPERTY_ENABLE = "sonar.web.accessLogs.enable";
   private static final String PROPERTY_PATTERN = "sonar.web.accessLogs.pattern";
-  private static final String DEFAULT_SQ_ACCESS_LOG_PATTERN = "%h %l %u [%t] \"%r\" %s %b \"%i{Referer}\" \"%i{User-Agent}\" \"%reqAttribute{ID}\"";
+  private static final String DEFAULT_SQ_ACCESS_LOG_PATTERN = "%h %l %u [%t] \"%r\" %s %b \"%i{Referer}\" \"%i{User-Agent}\" \"%reqAttribute{ID}\" %D";
 
   void configure(Tomcat tomcat, Props props) {
     tomcat.setSilent(true);