jenkinsci / perfpublisher-plugin

Jenkins perfpublisher plugin
https://plugins.jenkins.io/perfpublisher/
7 stars 8 forks source link

Adding Pipeline support #17

Closed abishek3876 closed 7 years ago

abishek3876 commented 7 years ago

This is a rework of #16 with only the minimally required changes.

This PR adds the Pipeline support for the plugin. Now, users can provide commands like the following in their pipeline script: perfpublisher healthy: '0', metrics: 'time=time', name: '*.xml', threshold: '0', unhealthy: '0'

Again, thanks to @aletu, for his work on this.

eschava commented 7 years ago

Have you tried "mvn package" command?

abishek3876 commented 7 years ago

Oopsie... failures... I will fix them and push asap...

abishek3876 commented 7 years ago

@eschava I have fixed the error. Javadoc generation was failing for me always, so had to use "-Dmaven.javadoc.skip=true" and the package command works fine now. PTAL.

eschava commented 7 years ago

I've put updated plugin to my Jenkins and see that HTML output is escaped now E.g. "Build Report" page has header like <div class="progress-container"><div id="red" style="width:15%;">8</div><div id="blue" style="width:85%;">232</div></div> Plesae check how it could be related to your changes

abishek3876 commented 7 years ago

@eschava , Is it having those headers with my latest commits. I found those headers after adding the escape-by-default tag to the jelly files. I have since reverted those changes and instead ignored the jelly PI check for now. So this shouldn't be happening with the latest change if I am not wrong.

eschava commented 7 years ago

I still have

[ERROR] hudson\plugins\PerfPublisher\CategoryDetails\index.jelly(org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyCheck) Time elapsed: 0.219 s <<< FAILURE! java.lang.AssertionError: <?jelly escape-by-default='true'?> is missing in file:/C:/Users/Eugeny.Schava/Downloads/perfpublisher-plugin/target/classes/hudson/plugins/PerfPublisher/CategoryDetails/index.jelly

error during mvn package command

abishek3876 commented 7 years ago

That's strange. I am able to execute the command just fine. Can you escape the error and paste it... I guess part of the information is missing in your comment. Also, the Jelly check test shouldn't run at all since I have disabled it by default in my last commit.

eschava commented 7 years ago

Sorry, mvn clean helped. Checking new build on my Jenkins box

eschava commented 7 years ago

Applied and released new 8.05 version