{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/cucumber-reports-plugin/issues/81","repository_url":"https://api.github.com/repos/jenkinsci/cucumber-reports-plugin","labels_url":"https://api.github.com/repos/jenkinsci/cucumber-reports-plugin/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/cucumber-reports-plugin/issues/81/comments","events_url":"https://api.github.com/repos/jenkinsci/cucumber-reports-plugin/issues/81/events","html_url":"https://github.com/jenkinsci/cucumber-reports-plugin/issues/81","id":171927230,"number":81,"title":"Several calls to CucumberReportPublisher (in pipeline) breaks html reports","user":{"login":"marcusphi","id":1379074,"avatar_url":"https://avatars.githubusercontent.com/u/1379074?v=3","gravatar_id":"","url":"https://api.github.com/users/marcusphi","html_url":"https://github.com/marcusphi","followers_url":"https://api.github.com/users/marcusphi/followers","following_url":"https://api.github.com/users/marcusphi/following{/other_user}","gists_url":"https://api.github.com/users/marcusphi/gists{/gist_id}","starred_url":"https://api.github.com/users/marcusphi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcusphi/subscriptions","organizations_url":"https://api.github.com/users/marcusphi/orgs","repos_url":"https://api.github.com/users/marcusphi/repos","events_url":"https://api.github.com/users/marcusphi/events{/privacy}","received_events_url":"https://api.github.com/users/marcusphi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-18T15:18:27Z","updated_at":"2016-08-19T07:46:40Z","closed_at":null,"body":"It seems that when I do more than one call to step([$class: 'CucumberReportPublisher' it breaks the Cucumber html report. I get several links on the build page, but when clicking anyone of them I get a HTTP 403 Forbidden.\r\n\r\nWhat's interesting is that the report works for a time when it's first generated, before the second step has run in the pipeline. Also, everything looks fine in the logs, it's copied fine to the master and I can't see any difference on the file system there between a working and non-working example.\r\n\r\nI am not really expecting you to fix this if it's complicated. I know that Jenkins publishers in classical Jenkins jobs only run once. But I would like to get a clarification that I will not indeed be able to make it work, maybe an idea for workaround in that case, or some suggestions on what I'm doing wrong if not the case.\r\n\r\nOne idea I had was to run the step only once at the end (this was mentioned in #28) but that wont work for me since I run the steps in different stages on different nodes."},"comment":{"url":"https://api.github.com/repos/jenkinsci/cucumber-reports-plugin/issues/comments/240951322","html_url":"https://github.com/jenkinsci/cucumber-reports-plugin/issues/81#issuecomment-240951322","issue_url":"https://api.github.com/repos/jenkinsci/cucumber-reports-plugin/issues/81","id":240951322,"user":{"login":"marcusphi","id":1379074,"avatar_url":"https://avatars.githubusercontent.com/u/1379074?v=3","gravatar_id":"","url":"https://api.github.com/users/marcusphi","html_url":"https://github.com/marcusphi","followers_url":"https://api.github.com/users/marcusphi/followers","following_url":"https://api.github.com/users/marcusphi/following{/other_user}","gists_url":"https://api.github.com/users/marcusphi/gists{/gist_id}","starred_url":"https://api.github.com/users/marcusphi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcusphi/subscriptions","organizations_url":"https://api.github.com/users/marcusphi/orgs","repos_url":"https://api.github.com/users/marcusphi/repos","events_url":"https://api.github.com/users/marcusphi/events{/privacy}","received_events_url":"https://api.github.com/users/marcusphi/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T07:46:40Z","updated_at":"2016-08-19T07:46:40Z","body":"There's not much to show...\r\n\r\n**Here is the links to the left on the build page:**\r\n![screen shot 2016-08-19 at 09 38 41](https://cloud.githubusercontent.com/assets/1379074/17802547/2d84f03c-65f1-11e6-9043-68b605dc6de7.png)\r\n\r\n**Here is the call from the pipeline code:**\r\n```\r\n        step([$class: 'CucumberReportPublisher',\r\n            jenkinsBasePath: 'https://my-jenkins-master.company.com/',\r\n            fileIncludePattern: '',\r\n            fileExcludePattern: '',\r\n            jsonReportDirectory: '',\r\n            ignoreFailedTests: true, missingFails: false, pendingFails: false, skippedFails: false, undefinedFails: false, parallelTesting: false])\r\n```\r\nThe second one is identical.\r\n\r\n**Here is the log of the first call:**\r\n```\r\n16:12:35 [INFO] BUILD SUCCESS\r\n16:12:35 [INFO] ------------------------------------------------------------------------\r\n16:12:35 [INFO] Total time: 24.105 s\r\n16:12:35 [INFO] Finished at: 2016-08-18T16:12:34+02:00\r\n16:12:35 [INFO] Final Memory: 55M/442M\r\n16:12:35 [INFO] ------------------------------------------------------------------------\r\n[Pipeline] step\r\n16:12:35 Recording test results\r\n[Pipeline] step\r\n16:12:35 [CucumberReportPublisher] Compiling Cucumber Html Reports ...\r\n16:12:35 [CucumberReportPublisher] Copying all json files from: /var/opt/jenkins-slave/workspace/frs-frs-application-feature-VGS-1261-frs-create-integrated-tests-as-a to reports directory: /var/lib/jenkins/jobs/frs-frs-application-feature-VGS-1261-frs-create-integrated-tests-as-a/builds/43\r\n16:12:35 [CucumberReportPublisher] Found 2 json files.\r\n16:12:35 [CucumberReportPublisher] 1. Found a json file: config/service_registry.json\r\n16:12:35 [CucumberReportPublisher] 2. Found a json file: frs-scenarios/target/reports/cucumber.json\r\n16:12:35 [CucumberReportPublisher] Generating HTML reports\r\n```"}}
{"actor":{"display_login":"marcusphi"}}