How to get JSON output of POSTMAN/NEWMAN in Jenkins HTML Report generator

523 views
Skip to first unread message

ahmet...@gmail.com

unread,
Jan 25, 2017, 10:57:44 AM1/25/17
to Jenkins Developers
Hi, 

I'm trying to convert the JSON output of POSTMAN/NEWMAN to HTML REPORTER OUTPUT in Jenkins.

If I use the JSON output from POSTMAN and give this to JENKINS without post action IT runs normally andd give s an TXT output like this 

┌─────────────────────────┬──────────┬──────────┐

│                         │ executed │   failed │

├─────────────────────────┼──────────┼──────────┤

│              iterations │        1 │        0 │

├─────────────────────────┼──────────┼──────────┤

│                requests │        4 │        0 │

├─────────────────────────┼──────────┼──────────┤

│            test-scripts │        4 │        0 │

├─────────────────────────┼──────────┼──────────┤

│      prerequest-scripts │        0 │        0 │

├─────────────────────────┼──────────┼──────────┤

│              assertions │        8 │        0 │

├─────────────────────────┴──────────┴──────────┤

│ total run duration: 294ms                     │

├───────────────────────────────────────────────┤

│ total data received: 107.5KB (approx)         │

├───────────────────────────────────────────────┤

│ average response time: 29ms                   │

└───────────────────────────────────────────────┘


But if try to convert this output to HTML with the J~ENKINS HTML reporter PLUGIN the I got a ERROR LIKE:


[htmlpublisher] Archiving HTML reports...

[htmlpublisher] Archiving at BUILD level /Users/XXXXX/JenkinsOutput to /Users/Shared/Jenkins/Home/jobs/TESTPostmanOK/builds/29/htmlreports/HTML_Report

ERROR: Build step failed with exception

Failed to copy /Users/axo06/JenkinsOutput/New3 copy copy.postman_collection4 to /Users/Shared/Jenkins/Home/jobs/TESTPostmanOK/builds/29/htmlreports/HTML_Report/New3 copy copy.postman_collection4 due to java.io.FileNotFoundException /Users/axo06/JenkinsOutput/New3 copy copy.postman_collection4 (Permission denied)

at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:914)

at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:567)

at hudson.Util.copyFile(Util.java:1149)

at hudson.FilePath$42$1.visit(FilePath.java:2134)

at hudson.util.DirScanner.scanSingle(DirScanner.java:49)

at hudson.util.DirScanner$Glob.scan(DirScanner.java:131)

at hudson.FilePath$42.invoke(FilePath.java:2128)

at hudson.FilePath$42.invoke(FilePath.java:2121)

at hudson.FilePath.act(FilePath.java:996)

at hudson.FilePath.act(FilePath.java:974)

at hudson.FilePath.copyRecursiveTo(FilePath.java:2121)

at hudson.FilePath.copyRecursiveTo(FilePath.java:2107)

at hudson.FilePath.copyRecursiveTo(FilePath.java:2090)

at htmlpublisher.HtmlPublisher.publishReports(HtmlPublisher.java:259)

at htmlpublisher.HtmlPublisher.perform(HtmlPublisher.java:173)

at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)

at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)

at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)

at hudson.model.Build$BuildExecution.post2(Build.java:185)

at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)

at hudson.model.Run.execute(Run.java:1753)

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)

at hudson.model.ResourceController.execute(ResourceController.java:98)

at hudson.model.Executor.run(Executor.java:404)

Caused by: java.io.FileNotFoundException: /Users/axo06/JenkinsOutput/New3 copy copy.postman_collection4 (Permission denied)

at java.io.FileInputStream.open0(Native Method)

at java.io.FileInputStream.open(FileInputStream.java:195)

at java.io.FileInputStream.<init>(FileInputStream.java:138)

at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:522)

at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:559)

at org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:899)

... 23 more

Build step 'Publish HTML reports' marked build as failure

Finished: FAILURE



Any IDEA WHY this happens?


Daniel Beck

unread,
Jan 25, 2017, 1:37:00 PM1/25/17
to jenkin...@googlegroups.com
This is the Jenkins developers mailing list. Please ask on the Jenkins users mailing list instead.

Reply all
Reply to author
Forward
0 new messages