admin管理员组

文章数量:1125559

i am using GitHub Pull Request Coverage Status in my post build action of jenkins freestyle project. there it is configured as.

Jacoco coverage counter type => Instruction Publish result as => comment

Now i am trying to migrate same for Jenkins pipeline. This is the logic i am using.

stage ('PR Coverage to Github') {
            steps {
                script {
                    step([$class: 'CompareCoverageAction', publishResultAs: 'Comment'])
                    step([$class: 'MasterCoverageAction', jacocoCounterType: 'INSTRUCTION'])
                }
            }

It is giving me this error

[GitHub PR Status] skip, build is red

本文标签: GitHub Pull Request Coverage Status after migrating to Jenkins Pipeline from freestlye jobStack Overflow