Skip to content

Commit

Permalink
add: CustomReportMetaPlugin.java
Browse files Browse the repository at this point in the history
  • Loading branch information
kochetkov-ma committed Jul 1, 2024
1 parent 0d7342b commit cd6d9d6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Allure Portal (Allure Report Server)
![Docker Pulls](https://img.shields.io/docker/pulls/kochetkovma/allure-server?link=https)



## About

https://allurereport.org/docs
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-h2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
allure-server:
# For local debug #
# build: .
image: kochetkovma/allure-server:2.13.5
image: kochetkovma/allure-server:2.13.6
ports:
- 8080:8080
volumes:
Expand Down
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ services:
allure-server:
# For local debug #
# build: .
image: kochetkovma/allure-server:2.13.5
image: kochetkovma/allure-server:2.13.6
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/allure
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: postgres
SPRING_JPA_DATABASE: postgresql
SPRING_JPA_HIBERNATE_DDL-AUTO: update # Careful! 'create' destroy data! https://stackoverflow.com/questions/21113154/spring-boot-ddl-auto-generator
TMS_ENABLED: 'false'
TMS_HOST: jira.localhost
TOKEN: '<token-here>'
TMS_DRYRUN: 'false'
ports:
- 8080:8080
volumes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import io.qameta.allure.summary.SummaryData;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.io.ClassPathResource;

import java.nio.file.Files;
import java.nio.file.Path;
Expand Down Expand Up @@ -50,8 +49,14 @@ public void onGenerationFinish(Path reportDirectory, Collection<LaunchResults> l

Files.write(customLogoPath, bytes);

String cssForNewLogo = new String(new ClassPathResource("static/" + LOGO_STYLE_FILE).getContentAsByteArray(), UTF_8)
.replace("img.png", logoName);
var cssForNewLogo = """
.side-nav__brand {
background: url('img.png') no-repeat left center !important;
padding-left: 200px !important;
margin-left: 10px;
}
""";
cssForNewLogo = cssForNewLogo.replace("img.png", logoName);
Files.writeString(customLogoCssPath, cssForNewLogo, UTF_8, Files.exists(customLogoCssPath) ? TRUNCATE_EXISTING : CREATE_NEW);
log.info("{}: {} copied to {}", getName(), logoName, customLogoPath);
}
Expand Down
5 changes: 0 additions & 5 deletions src/main/resources/static/styles.css

This file was deleted.

0 comments on commit cd6d9d6

Please sign in to comment.