{"action":"created","issue":{"url":"https://api.github.com/repos/codeborne/selenide/issues/316","repository_url":"https://api.github.com/repos/codeborne/selenide","labels_url":"https://api.github.com/repos/codeborne/selenide/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/codeborne/selenide/issues/316/comments","events_url":"https://api.github.com/repos/codeborne/selenide/issues/316/events","html_url":"https://github.com/codeborne/selenide/issues/316","id":149059055,"number":316,"title":"How to tell Selenide to create a substitute link once a test fails","user":{"login":"thasherwin","id":17144752,"avatar_url":"https://avatars.githubusercontent.com/u/17144752?v=3","gravatar_id":"","url":"https://api.github.com/users/thasherwin","html_url":"https://github.com/thasherwin","followers_url":"https://api.github.com/users/thasherwin/followers","following_url":"https://api.github.com/users/thasherwin/following{/other_user}","gists_url":"https://api.github.com/users/thasherwin/gists{/gist_id}","starred_url":"https://api.github.com/users/thasherwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thasherwin/subscriptions","organizations_url":"https://api.github.com/users/thasherwin/orgs","repos_url":"https://api.github.com/users/thasherwin/repos","events_url":"https://api.github.com/users/thasherwin/events{/privacy}","received_events_url":"https://api.github.com/users/thasherwin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-04-18T06:51:46Z","updated_at":"2016-07-26T09:14:43Z","closed_at":"2016-04-20T13:29:21Z","body":"This is more like a question and not an issue:\r\nHow to make Selenide create a substitute link to the screenshot when a test fail?\r\n\r\nFor example if my test fail in Jenkins i don't see a substitute link. I only a see path location where the screenshot is saved. \r\n\r\nScreenshot: file:/var/lib/jenkins/jobs/....../build/reports/tests/1460730661171.1.png\r\n"},"comment":{"url":"https://api.github.com/repos/codeborne/selenide/issues/comments/235208753","html_url":"https://github.com/codeborne/selenide/issues/316#issuecomment-235208753","issue_url":"https://api.github.com/repos/codeborne/selenide/issues/316","id":235208753,"user":{"login":"anyone-can-test","id":4198607,"avatar_url":"https://avatars.githubusercontent.com/u/4198607?v=3","gravatar_id":"","url":"https://api.github.com/users/anyone-can-test","html_url":"https://github.com/anyone-can-test","followers_url":"https://api.github.com/users/anyone-can-test/followers","following_url":"https://api.github.com/users/anyone-can-test/following{/other_user}","gists_url":"https://api.github.com/users/anyone-can-test/gists{/gist_id}","starred_url":"https://api.github.com/users/anyone-can-test/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anyone-can-test/subscriptions","organizations_url":"https://api.github.com/users/anyone-can-test/orgs","repos_url":"https://api.github.com/users/anyone-can-test/repos","events_url":"https://api.github.com/users/anyone-can-test/events{/privacy}","received_events_url":"https://api.github.com/users/anyone-can-test/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T09:14:43Z","updated_at":"2016-07-26T09:14:43Z","body":"My build.gradle\r\n\r\nif(project.hasProperty(\"jenkins\") == true) {\r\n    systemProperty \"parallel\", \"yes\"\r\n    systemProperty \"selenide.timeout\", 10000\r\n    systemProperty \"selenide.browser\", \"xxxx\"\r\n\r\n    // It does not work.\r\n    //systemProperty \"selenide.reportsUrl\", \"${JOB_URL}${BUILD_NUMBER}/artifact/\"\r\n\r\n    def job_url = System.getenv(\"JOB_URL\") as String ?: \"\"\r\n    println \"job url: \" + job_url\r\n    def build_number = System.getenv(\"BUILD_NUMBER\") as String ?: \"\"\r\n    systemProperty \"selenide.reportsUrl\", job_url + build_number + \"/artifact/\"\r\n  }\r\n"}}
{"actor":{"display_login":"anyone-can-test"}}