jenkinsci / klocwork-plugin

Jenkins Klocwork Plugin
https://plugins.jenkins.io/klocwork/
MIT License
20 stars 21 forks source link

klocworkQualityGateway pipeline step doesn't mark stage & step as unstable #61

Open luis-garza opened 4 years ago

luis-garza commented 4 years ago

Hi, I'm using klocworkQualityGateway pipeline step to mark the builds as unstable if a new issue is detected durin incremental analysis.

klocworkQualityGateway ([
    enableCiGateway: true,
    gatewayCiConfigs: [[
        enableHTMLReporting: true,
        enabledStatuses: [
            analyze: true,
            defer: true,
            filter: true,
            fix: true,
            fixInLaterRelease: true,
            fixInNextRelease: true,
            ignore: true,
            notAProblem: true
        ],
        failUnstable: true,
        name: 'No New Issues (Any Status)',
        reportFile: "kwreport.xml",
        threshold: '1'
    ]]
])

This is working as expected, quite well. But looks like it hasn't implement a new pipeline improvement about unstable status. The build is marked as unstable, but pipeline stage and step aren't marked as unstable as well.

https://jenkins.io/blog/2019/07/05/jenkins-pipeline-stage-result-visualization-improvements/

Would be really nice if the plugin can support new generation unstable flag.

dia38 commented 4 years ago

hello, i'm doing for Server Faiure condition #62 .