Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50955

add ability to set "doNotScan" for the BFA plugin with Declarative Pipeline

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • build-failure-analyzer:1.19.2 'Build Failure Analyzer'
      pipeline-model-definition:1.2.9 'Pipeline: Declarative'
      CloudBees Jenkins Enterprise 2.107.2.1-rolling

      I'm able to disable the build failure analyzer plugin for my scripted Pipeline by using:

         properties([[$class: 'ScannerJobProperty', doNotScan: true]])

      as per: https://github.com/rkivisto/buildFailureAnalyzer/blob/master/Jenkinsfile

       

      For declarative Pipeline:

      https://github.com/rkivisto/buildFailureAnalyzer/blob/declarative/Jenkinsfile

      the BFA plugin is working well, but when I searched the documentation for the BFA plugin, and also when I check the Declarative Directive Generator (https://jenkins.io/blog/2018/04/09/whats-in-declarative/#declarative-directive-generator) under the "Options" directive, I do not see any options related to disabling the BFA plugin for declarative pipeline.

            t_westling Tomas Westling
            rkivisto Ray Kivisto
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: