Hi Ann

I'm the current maintainer of the HTML Publisher plugin but unfortunately
I'm not 100% up-to-speed with its use with pipeline etc. I couldn't
replicate the syntax error you had so I'm wondering if that is actually
being caused by a syntax error somewhere else and its reporting it
incorrectly?

I have had luck following the Accessing Steps section at
https://jenkins.io/doc/book/pipeline/shared-libraries/#accessing-steps -
that is, I just used publishHTML inside a shared library src file so, in
theory, your "publishHTML([allowMissing: false, alwaysLinkToLastBuild: false,
keepAll: false, reportDir: 'results', reportFiles: 'report.html', reportName:
'HTML Report', reportTitles: ''])" in the execute function *should* have
worked I think as far as I can tell. If you can let me know what happens
with just that there (i.e. what error/behaviour you see) then that might
help track things down.

Richard.

On Sat, 9 Sep 2017 at 06:57 Ann B <annc...@gmail.com> wrote:

> Hi Richard-
>
> When I try:
>
> steps.step([$class: 'PublishHTMLStep', allowMissing: false, 
> alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'results', 
> reportFiles: 'report.html', reportName: 'HTML Report', reportTitles: ''])
>
> I get this error:
> *syntax error near unexpected token `)'*
>
> Also tried without steps.step and got
> *hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No
> signature of method: org.magento.ci.tests.Functional.publishHTML() is
> applicable for argument types: (java.util.LinkedHashMap) values:
> [[allowMissing:false, alwaysLinkToLastBuild:false, keepAll:false, ...]]*
> Referencing ArtifactArchiver and JUnitResultArchiver classes works fine.
>
> Could just be the implementation of PublishHTMLStep.  I'm just trying to
> figure out how to publish HMTL pages.  Perhaps there is another way.
> I added a comment to this PR as it seemed related to my question -
> https://github.com/jenkinsci/htmlpublisher-plugin/pull/15
>
> Thanks,
>
> Ann
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/a843956e-e4df-45e0-9a4e-59343c539a25%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/a843956e-e4df-45e0-9a4e-59343c539a25%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMui945A1UXUXMVcyis1r-%3DpWM__KswORCHYmSfJdsnZat7UaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to