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

Allow for "Fallback" Entries in BFA Knowlege Base

      This is somewhat similar to JENKINS-23978. We have a lot of entries and some are generic "catch-all" entries that we would like to trigger only if a more specific entry does not trigger. It would be nice to be able to flag these entries as such so that they only get evaluated and reported if no other failure-cause is identified.

          [JENKINS-34709] Allow for "Fallback" Entries in BFA Knowlege Base

          rsandell added a comment -

          Shouldn't be too hard to implement.
          Add a new property to FailureCauses: fallback
          Then in the scanning phase; first go through all causes that has fallback == false, and then if no indications are found loop through all causes with fallback == true in the same way.
          Since the java default for missing (optional) boolean values are false it should be no problems with backwards compatibility, just need to make sure the field is marked as optional to the json parser.

          rsandell added a comment - Shouldn't be too hard to implement. Add a new property to FailureCauses: fallback Then in the scanning phase; first go through all causes that has fallback == false, and then if no indications are found loop through all causes with fallback == true in the same way. Since the java default for missing (optional) boolean values are false it should be no problems with backwards compatibility, just need to make sure the field is marked as optional to the json parser.

            t_westling Tomas Westling
            kbaltrinic Kenneth Baltrinic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: