jenkinsci / cucumber-living-documentation-plugin

https://plugins.jenkins.io/cucumber-living-documentation/
https://plugins.jenkins.io/cucumber-living-documentation/
MIT License
15 stars 11 forks source link

Jenkins pipeline and behat compatibility ? #3

Closed mickaelperrin closed 7 years ago

mickaelperrin commented 8 years ago

Hi,

I am trying to implement your plugin in a Jenkins pipeline.

I added to my Jenkinsfile the following line:

// Generate living documentation
step([$class: 'CukedoctorPublisher', featuresDir: "${_paths.src}/reports/behat", numbered: true, sectAnchors: true, toc: 'RIGHT', format: 'HTML', title: 'Documentation'])

However, the plugin fail without any output, nor in the console output, nor in the Jenkins log.

I successfully use the json file with the slack send plugin.

Could you tell me if this is possible to use this plugin with the new Jenkins 2 pipeline ? is this plugin also compatible with behat tests ?

Thanks

rmpestano commented 8 years ago

Hi @mickaelperrin,

Unfortunately the plugin is not compatible with jenkins2 pipeline yet, will leave this issue opened as soon we implement it.

For the Behat tests as soon as you enable the json formatter, see this issue it should work.

mickaelperrin commented 8 years ago

Thanks for the quick answer.

I can confirm that cukedoctor is compatible with behat. I successfully generated the documentation manually using the jar.

Currently I am working on generating the documentation in my pipeline by directly calling the jar also.

rmpestano commented 8 years ago

:+1: