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

Simplify pipeline script execution #7

Closed rmpestano closed 7 years ago

rmpestano commented 7 years ago

To call the plugin via pipeline script one needs to declare all parameters and declare the step:

 step([$class: 'CukedoctorPublisher', featuresDir: '', format: 'HTML', hideFeaturesSection: false, hideScenarioKeyword: false, hideStepTime: false, hideSummary: false, hideTags: false, numbered: true, sectAnchors: true, title: 'Living Documentation', toc: 'RIGHT'])

Make livingDocs pipeline step aware as described here.

rmpestano commented 7 years ago

Now it is possible to call it via livingDocs function name with default parameters:

node {
    svn 'https://subversion.assembla.com/svn/cucumber-json-files/trunk'
    livingDocs()
}

or declaring parameters:

node {
    svn 'https://subversion.assembla.com/svn/cucumber-json-files/trunk'
    livingDocs(featuresDir:'cukedoctor')
}