Hi all-
I am attempting to perform a publishHTML post-build action in my Shared
Library pipeline code. I am having a problem coming up with the correct
syntax.
I am referencing the steps instance from my *vars/runFunctionalTests.groovy*
global variable:
*import *org.magento.ci.tests.Functional
*def *call() {
node {
*def *functionalTest = *new *Functional(*'Functional'*)
buildImages(functionalTest)
parallel functionalTest.execute(steps, label_slave)
}
}
Snippet from Functional (*src/tests/Functional.groovy*) class of what I
have tried but have not been successful:
@NonCPS
*def *execute(DSL steps, String agentLabel) {
:
:
*// References to ArtifactArchiver and JUnitResultArchiver work fine.*
steps.step([*$class*: *'ArtifactArchiver'*, *artifacts*: *'results/*,
*-results.tar.gz'*, *excludes*: *null*])
steps.step([*$class*: *'JUnitResultArchiver'*, *allowEmptyResults*:
*true*, *testResults*: *'phpunit.xml'*])
*// All of these attempts fail.*
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false,
keepAll: false, reportDir: 'results', reportFiles: 'report.html',
reportName: 'HTML Report', reportTitles: ''])
steps.step([*$class*: *'htmlpublisher.HtmlPublisherTarget'*,
*allowMissing*: *false*, *alwaysLinkToLastBuild*: *false*, *keepAll*:
*false*, *reportDir*: *'results'*, *reportFiles*: *'report.html'*,
*reportName*: *'ACB HTML Report'*, *reportTitles*: *''*])
*def *htmlReport = *new *htmlpublisher.HtmlPublisherTarget(*'ACB HTML
Report'*, *'results'*, *'report.html'*, *false*, *false*, *false*)
steps.step(htmlReport)
}
Thanks in advance,
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/CAD4O2JnprWcD5ZP_bvfsyNNZSovbRQ6e2vSgF9Ri%3DbF4mdYm1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.