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

how do I set "hideScenarioKeyword"? #29

Closed mypark closed 4 years ago

mypark commented 4 years ago

I didn't see it in the advanced options in the screenshot

rmpestano commented 4 years ago

Hi, what are you trying and is not working for you? you're maven plugin, jenkins or the fat jar/cli?

rmpestano commented 4 years ago

Ow sorry, I see you're in Jenkins plugin (I was browsing an issue In cukedoctor project, my bad), there should be advanced options available in "normal jobs" or if you're using pipeline script you should try:

pipeline {
    agent any
    stages {
        stage('Checkout') {
            steps {
                svn 'https://subversion.assembla.com/svn/cucumber-json-files/trunk'
                livingDocs(featuresDir:'cukedoctor', hideScenarioKeyword: true)
            }
        }
    }
}
mypark commented 4 years ago

ok I see it - thanks!

rmpestano commented 4 years ago

you should see something like this:

Running on Jenkins in /Users/rpestano/.jenkins/workspace/test2
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] svn
Updating https://subversion.assembla.com/svn/cucumber-json-files/trunk at revision '2019-11-13T20:51:13.983 +0100'
At revision 6

No changes for https://subversion.assembla.com/svn/cucumber-json-files/trunk since the previous build
[Pipeline] livingDocs

Generating living documentation for test2 #8 with the following arguments: 
Features dir: cukedoctor
Format: html
Toc: right
Title: Living Documentation
Numbered: true
Section anchors: true
Hide features section: false
Hide summary: false
Hide scenario keyword: true
Hide step time: false
Hide tags: false

Found 4 feature(s)...
Documentation generated successfully!

if not, please reopen the issue