allure-framework / allure-bamboo

Allure plugin for Atlassian Bamboo
Apache License 2.0
26 stars 20 forks source link

Allure history disappeared after testless/buildspec build #272

Open SaFiT opened 1 year ago

SaFiT commented 1 year ago

I ran into a problem that after a build that does not contain test cases (Broken) or build sepcs Allure does not display the history. Example: image Allure report of 490 build doesn't contain history. Seems that root cause in allure-bamboo plugin: When build is done allure trying to define last allure report with history and it implemented by calling URL

format("%s/plugins/servlet/allure/report/%s/%s/history/%s",
                getBambooBaseUrl(), planKey, buildId, fileName)

if returned 200, it means that build contain history and allure will copy artifacts from build, but if build is testless allure still returns 200 on above URL and trying to copy history from build without history.

Allure-bamboo plugin version: 1.14.0