Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins pipeline and Robot Framework results

I had to implement a Pipeline and trying to find a way, how to publish Robot Framework results in Jenkins Pipeline. I found multiple questions about implementation of Robot Framework plugin into Pipeline and also found this question which seems to be solution. However I have tried this approach and results are still missing.

Is there any workaround or functional example?

like image 331
Pavol Travnik Avatar asked Aug 07 '17 12:08

Pavol Travnik


1 Answers

[Edited to reflect successful workaround]

This comment on the issue tracker shows a workaround that seems to work:

step([
    $class : 'RobotPublisher',
    outputPath : outputDirectory,
    outputFileName : "*.xml",
    disableArchiveOutput : false,
    passThreshold : 100,
    unstableThreshold: 95.0,
    otherFiles : "*.png",
])

However, the Robot Framework Plugin currently does not seem to be fully compatible with Pipeline right now: https://issues.jenkins-ci.org/browse/JENKINS-34469

This is common with many plugins in the Jenkins ecosystem right now that have not been updated yet to be compatible with the new Jenkins Pipeline. You could potentially create the full compatibility yourself though, if you're motivated enough.

like image 78
teakvinyl Avatar answered Nov 04 '22 15:11

teakvinyl