Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cucumber report link not working after renaming or moving jenkins job #297

Open
apahari opened this issue Feb 20, 2019 · 7 comments
Open

Comments

@apahari
Copy link

apahari commented Feb 20, 2019

We are using cucumber-reports-plugin to publish pretty cucumber reports on jenkins, and this is working great.

However, when I renamed a job or moved the job to a different folder (via the Move jenkins plugin), then I am no longer able to access the older generated cucumber reports for older builds via the 'Cucumber Reports' link on the left side of the build.

I confirmed that the directory cucumber-html-reports is present and all the data is present - the file overview-features.html, the folders of embeddings, js, css, images, fonts, .cahe etc.

Clicking the following hyperlink for 'Cucumber Reports' gives the error:

Link:

http://myjenkinsdomain.com/job/myjobFolder/job/**renamedJobName**/o**ldBuildNumberBeforeRename**/cucumber-html-reports/overview-features.html

Error:
HTTP ERROR 404
This .... page can't be found

No webpage was found for the web address: http://myjenkinsdomain.com/job/myjobFolder/job/renamedJobName/buildNumber/cucumber-html-reports/overview-features.html

How can I get the links working again ?

(Note: The builds I triggered after renaming the job, they all have working links to the cucumber reports - the problem is with accessing the reports for the builds triggered before renaming)

Thank you !

screen shot 2019-02-20 at 1 38 40 pm

screen shot 2019-02-20 at 1 30 17 pm

@damianszczepanik
Copy link
Member

Confirmed, will take a look at this soon

@apahari
Copy link
Author

apahari commented Feb 22, 2019

Hi,

I did a simple test:

For the build, where I can open cucumber-reports:

I opened overview-features.html, and just added 'TEST' in the <title> tag, saved it. And when I click on cucumber report link: it gives 404 for overview-features.html.

I guess it is because there is some file checksum comparison that is being done - in the SafeArchiveServingAction.java ? (where checksum is being done for the file including the whole directory path), thus serveFile throwing HttpResponses.notFound() ?

This is my speculation - I tried to locate the log file of this plugin in jenkins - but could not. Can you tell me where it would be located ?

So via jenkins when we rename or move the job, the directory path to the file changes.

When I again renamed the job back to what it was before (undoing my change basically) via jenkins, now I can view the cucumber reports.

Thanks,
Aparna

@damianszczepanik
Copy link
Member

That was my first idea but checksum is about the content which stays the same.

@ModQA
Copy link

ModQA commented Aug 22, 2019

Any update on this issue? Having the same problem

@ivanekPL
Copy link

ivanekPL commented Feb 6, 2020

Is there any solution or workaround? It's possible to manually change the path so that the report shows up?

@dchitwood3
Copy link

Any update on this? I see the reports are still on the system & can be accessed from the drive directly.

@damianszczepanik
Copy link
Member

I don't think Jenkins support information about path before and after renaming job so I don't think this is possible to support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants