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

pls support Jenkins configuration as code in BUILD_FAILURE_ANALYER

XMLWordPrintable

      Currently the build failure anyer JCaaS export configuration is like that:

       

      unclassified:  
       buildFailureAnalyzer:  
        doNotAnalyzeAbortedJob: false
        gerritTriggerEnabled: false
        globalEnabled: true
        graphsEnabled: false
        knowledgeBase: "localFile"
        maxLogSize: 0
        noCausesEnabled: true
        noCausesMessage: "No problems were identified. If you know why this problem occurred,\
        \ please add a suitable Cause for it."
        nrOfScanThreads: 3
        slackFailureCategories: "ALL"
        slackNotifEnabled: false
        sodVariables:
          maximumSodWorkerThreads: 5  
        testResultParsingEnabled: false 

       
      The problem with that is causes in local files are not exported
      While the XML for the plugin is :

      <?xml version='1.1' encoding='UTF-8'?>
      <com.sonyericsson.jenkins.plugins.bfa.PluginImpl plugin="build-failure-analyzer@1.27.1">
        <noCausesEnabled>true</noCausesEnabled>
        <noCausesMessage>No problems were identified. If you know why this problem occurred, please add a suitable Cause for it.</noCausesMessage>
        <globalEnabled>true</globalEnabled>
        <doNotAnalyzeAbortedJob>false</doNotAnalyzeAbortedJob>
        <gerritTriggerEnabled>true</gerritTriggerEnabled>
        <slackNotifEnabled>false</slackNotifEnabled>
        <slackChannelName></slackChannelName>
        <slackFailureCategories>ALL</slackFailureCategories>
        <fallbackCategoriesAsString></fallbackCategoriesAsString>
        <knowledgeBase class="com.sonyericsson.jenkins.plugins.bfa.db.LocalFileKnowledgeBase">
          <causes>
            <entry>
              <string>318b1efe-2d89-4221-9f6d-9066d34f7e6a</string>
              <com.sonyericsson.jenkins.plugins.bfa.model.FailureCause>
                <id>318b1efe-2d89-4221-9f6d-9066d34f7e6a</id>
                <name>New...sdf</name>
                <description>Description...sdf</description>
                <comment>sdfsdf</comment>
                <indications>
                  <com.sonyericsson.jenkins.plugins.bfa.model.indication.BuildLogIndication>
                    <pattern>sdfsdf</pattern>
                  </com.sonyericsson.jenkins.plugins.bfa.model.indication.BuildLogIndication>
                </indications>
                <modifications class="linked-list">
                  <com.sonyericsson.jenkins.plugins.bfa.model.FailureCauseModification>
                    <user>admin</user>
                    <time>2020-09-24 10:10:10.612 UTC</time>
                  </com.sonyericsson.jenkins.plugins.bfa.model.FailureCauseModification>
                </modifications>
              </com.sonyericsson.jenkins.plugins.bfa.model.FailureCause>
            </entry>
          </causes>
        </knowledgeBase>
        <nrOfScanThreads>3</nrOfScanThreads>
        <maxLogSize>0</maxLogSize>
        <graphsEnabled>false</graphsEnabled>
        <testResultParsingEnabled>false</testResultParsingEnabled>
        <testResultCategories></testResultCategories>
        <sodVariables>
          <minimumSodWorkerThreads>1</minimumSodWorkerThreads>
          <maximumSodWorkerThreads>1</maximumSodWorkerThreads>
          <sodThreadKeepAliveTime>15</sodThreadKeepAliveTime>
          <sodWaitForJobShutdownTimeout>30</sodWaitForJobShutdownTimeout>
          <sodCorePoolNumberOfThreads>5</sodCorePoolNumberOfThreads>
        </sodVariables>
      </com.sonyericsson.jenkins.plugins.bfa.PluginImpl>
      

       
       

            t_westling Tomas Westling
            ro_mag Roman Maharshak
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: