damianszczepanik / cucumber-reporting-jenkins

Java jenkins plugin for cucumber-jvm reporting
151 stars 12 forks source link

Plugin only check Jenkins master server for target cucumber.json directory and not the build agent #10

Closed powersfoss closed 12 years ago

powersfoss commented 12 years ago

JENKINS JOB WORKSPACE: d:\jenkinsbuildagent\workspace\MyApp\ CUCUMBER JSON FILE LOCATION: d:\jenkinsbuildagent\workspace\MyApp\target\cucumber.json

CUCUMBER REPORT PUBLISHER CONFIG: JSON REPORTS PATH: target

When the Jenkins job is run, the Publisher plugin cannot find the target directory:

[CucumberReportPublisher] Compiling Cucumber Html Reports ... ERROR: Publisher net.masterthought.jenkins.CucumberReportPublisher aborted due to exception java.lang.IllegalStateException: basedir d:\JenkinsBuildAgent\workspace\MyApp\target does not exist. at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:879) at net.masterthought.jenkins.CucumberReportPublisher.findJsonFiles(CucumberReportPublisher.java:41) at net.masterthought.jenkins.CucumberReportPublisher.perform(CucumberReportPublisher.java:61)

powersfoss commented 12 years ago

As an additional test, I created a directory d:\JenkinsBuildAgent\workspace\MyApp\target with cucumber.json file in it directly on our Jenkins master server and re-ran the job. The job was successful. So that seems to be the nature of the defect. The plugin is only checkin the Jenkins master server and not the actual Jenkins build agent box for the target directory.

kingsleyh commented 12 years ago

Well spotted :) this fix will be in the next release

Sent from my iPhone

On 25 May 2012, at 17:14, powersfossreply@reply.github.com wrote:

JENKINS JOB WORKSPACE: d:\jenkinsbuildagent\workspace\MyApp\ CUCUMBER JSON FILE LOCATION: d:\jenkinsbuildagent\workspace\MyApp\target\cucumber.json

CUCUMBER REPORT PUBLISHER CONFIG: JSON REPORTS PATH: target

When the Jenkins job is run, the Publisher plugin cannot find the target directory:

[CucumberReportPublisher] Compiling Cucumber Html Reports ... ERROR: Publisher net.masterthought.jenkins.CucumberReportPublisher aborted due to exception java.lang.IllegalStateException: basedir d:\JenkinsBuildAgent\workspace\MyApp\target does not exist. at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:879) at net.masterthought.jenkins.CucumberReportPublisher.findJsonFiles(CucumberReportPublisher.java:41) at net.masterthought.jenkins.CucumberReportPublisher.perform(CucumberReportPublisher.java:61)


Reply to this email directly or view it on GitHub: https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java/issues/10

orieken commented 12 years ago

I would be interested in a solution to this one as well

kingsleyh commented 12 years ago

Fixed and will be in pending release

powersfoss commented 12 years ago

Thank you, sir! Really looking forward to using your plugin with all of our Cucumber CI jobs.

On May 26, 2012, at 1:57 PM, Kingsley Hendricksereply@reply.github.com wrote:

Fixed and will be in pending release


Reply to this email directly or view it on GitHub: https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java/issues/10#issuecomment-5949219

kingsleyh commented 12 years ago

Sure :) - I have just released version 0.0.10 - so hopefully it will work on your slaves without a problem :)

powersfoss commented 12 years ago

Works, great, thanks!

powersfoss commented 12 years ago

Verified fixed. Lovin' it!

On Sat, May 26, 2012 at 2:59 PM, Kingsley Hendrickse < reply@reply.github.com

wrote:

Sure :) - I have just released version 0.0.10 - so hopefully it will work on your slaves without a problem :)


Reply to this email directly or view it on GitHub:

https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java/issues/10#issuecomment-5949550