1
0
mirror of https://github.com/kochetkov-ma/allure-server.git synced 2024-11-24 08:22:37 +02:00
Allure Server. Save/ generate / provide allure2 reports in one place http://allure.iopump.ru/
Go to file
Maxim Kochetkov 8a87ce1ad9 remove pitest
2020-05-01 20:20:29 +03:00
.github/workflows add docker build action / fix bugs 2020-04-21 16:07:57 +03:00
config first commit 2020-04-18 21:37:00 +03:00
gradle remove pitest 2020-05-01 20:20:29 +03:00
src fix tests 2020-05-01 20:14:14 +03:00
.gitignore add missed plugins jars 2020-04-22 16:35:13 +03:00
build.gradle remove pitest 2020-05-01 20:20:29 +03:00
docker-compose.yml add docker-compose 2020-04-21 17:16:50 +03:00
Dockerfile add docker build action / fix bugs 2020-04-21 16:07:57 +03:00
gradle.properties add docker build action / fix bugs 2020-04-21 16:07:57 +03:00
LICENSE first commit 2020-04-18 21:37:00 +03:00
README.md Feature/store in db (#2) 2020-05-01 20:11:22 +03:00
settings.gradle first commit 2020-04-18 21:37:00 +03:00

Allure Portal (Allure Report Server)

Build / Test / Check

jdk11 gradle junit

checkstyle pmd spotbugs

About

Allure server for store / aggregate / manage Allure results and generate / manage Allure Reports.

There is only API in first major version with Swagger(OpenAPI) Description.

Just use Spring Boot Jar from Release Page.

Works on WebUI is in progress to next major (2.0.0) version.

Get Started

Docker

There is a docker image on Docker Hub: allure-server Running as Docker container look at: readme

Jar

Get the latest release Releases
Download allure-server.jar
Update your jre(jdk) up to Java 11
Execute command java -jar allure-server.jar

Got to http://localhost:8080 - will redirect to OpenAPI (Swagger UI)

Upload results

Only allure2 supported
Make some allure results and create zip archive with these results, for example allure-results.zip in your root dir

curl --location --request POST 'http://localhost:8080/api/result' \
--form 'allureResults=@/allure-results.zip;type=application/zip'

Response:

{
    "fileName": "allure-results.zip",
    "uuid": "1037f8be-68fb-4756-98b6-779637aa4670"
}

Save uuid
Don't forget specify form item Content type as application/zip. Server works with zip archives only!

Generate report

For generate new report execute POST request with json body:

curl --location --request POST 'http://localhost:8080/api/report' \
--header 'Content-Type: application/json' \
--data-raw '{
  "reportSpec": {
    "path": [
      "master",
      "666"
    ],
    "executorInfo": {
      "buildName": "#666"
    }
  },
  "results": [
    "1037f8be-68fb-4756-98b6-779637aa4670"
  ],
  "deleteResults": false
}'

Response:

{
    "path": "master/666",
    "url": "http://localhost:8080/allure/reports/master/666/index.html"
}

Memorize url

Access to generated reports

After generating you can access the report byhttp://localhost:8080/allure/reports/master/666/index.html

You may get all reports

curl --location --request GET 'http://localhost:8080/api/report'

Or by path as branch name master

curl --location --request GET 'http://localhost:8080/api/report?path=master'

You may get all uploaded results:

curl --location --request GET 'http://localhost:8080/api/result'

Clear results or reports:

curl --location --request DELETE 'http://localhost:8080/api/result'
curl --location --request DELETE 'http://localhost:8080/api/report'

Special options

From version 1.2.0 all reports manage with Database and have unic uuids. Old format is no longer supported, but you can convert reports created before 1.2.0 - just set 'allure.support.old.format' to 'true' in Spring Configutaion:

  • system vars (JVM option) -Dallure.support.old.format=true
  • environment vars export allure.support.old.format=true
  • in docker environment vars -e allure.support.old.format=true

Work on the documentation in progress ...