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

email-ext - new failed test regression trigger

    XMLWordPrintable

Details

    Description

      Curently regressionTrigger triggers email when THERE IS DIFFERENCE in failed tests, which doesn't cover fully regressions.
      Example: build #1 testA failed, test B ok
      build #2: testA ok, test B failed.
      In both cases 1 failed so for build #2 regressiontrigger won't trigger email.

      return build.getTestResultAction().getFailCount() >
      previousBuild.getTestResultAction().getFailCount();

      But in fact it is the regression because new test failed.

      So modify existing RegressionTrigger or add new 'NewFailedTestsRegressionTrigger' with
      public boolean trigger(AbstractBuild<?, ?> build, TaskListener listener) {
      ....
      for (test in build.getTestResultAction().getFailedTests()){
      if (test.getAge() == 1)

      { return true; }

      }
      return false;

      Attachments

        Activity

          tomaszbech Tomasz Bech created issue -
          slide_o_mix Alex Earl made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          slide_o_mix Alex Earl made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 154120 ] JNJira + In-Review [ 194795 ]

          People

            slide_o_mix Alex Earl
            tomaszbech Tomasz Bech
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: