Acessing build dir from browser

23 views
Skip to first unread message

Maciej Gawinecki

unread,
Jun 23, 2016, 7:10:48 AM6/23/16
to Jenkins Users
My tests are taking screenshots. However, screenshots are taking a lot of space. So we have decided to store them within build directory, e.g.

/home/dev/jenkins/jobs/run-authng-sqa-phantomjs-tests-on-sqa/builds/26/screenshots

instead of workspace. This way, older builds are removed together with screenshots automatically. Now, when a screenshots is taken it says in the logs:

Screenshot taken to file:///var/lib/jenkins/jobs/run-authng-sqa-phantomjs-tests-on-sqa/builds/26/screenshots/2016-06-23T10:52:10.474+0000.png can be accessed at http://jenkins_server/job/run-authng-sqa-phantomjs-tests-on-sqa/26/screenshots/2016-06-23T10:52:10.474+0000.png 

However, screenshots are no longer visible through a Web browser, i.e. there's no way to access URL.

Any workaround?

Regards,
Maciej

Eric Pyle

unread,
Jun 23, 2016, 9:28:01 AM6/23/16
to jenkins...@googlegroups.com

You could archive the screenshots as build artifacts. This will still be removed according to your build retention settings, and they should also be accessible via URL.

Eric

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/dd64c508-a971-4706-9e8a-015221e29588%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Maciej Gawinecki

unread,
Jun 24, 2016, 1:49:09 AM6/24/16
to jenkins...@googlegroups.com
Thank you. Works fine.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/jlsqYlCF9rQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8109284f-37ab-91fe-830a-b4499fa0e43d%40cd-adapco.com.
Reply all
Reply to author
Forward
0 new messages