I noticed the xunit plugin and wscleanup don't appear in the Sample Step 
drop down of the snippet generator.

This is how I use them in my jenkinsfile:

step([$class: 'WsCleanup'])


step([$class : 'XUnitPublisher',
>     testTimeMargin: '3000',
>     thresholdMode: 1,
>     thresholds: [
>         [$class: 'FailedThreshold', failureNewThreshold: '', 
> failureThreshold:'2', unstableNewThreshold: '', unstableThreshold: '']
>     ],
>     tools : [[$class: 'MSTestJunitHudsonTestType',
>         deleteOutputFiles: true,
>         failIfNotNew: false,
>         pattern: "\\TestResults\\*.trx",
>         skipNoTestFiles: false,
>         stopProcessingIfError: true
>     ]]
> ])


Does this have something to do with the fact that they are called with 
step()? Im not really even sure what step() is or why its necessary for 
them to work. Is this because they don't actually have 100% declarative 
pipeline support yet?

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7f807d23-7867-488d-bfc6-a709515dc276%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to