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

Be able to mark a job as succesful even if it has failing tests

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline-maven-plugin
    • None
    • Jenkins 2.89.3

      I'm using withMaven and running maven in a pipeline. withMaven junit publisher sets the build as UNSTABLE when there's a test.

      However we check for flakey tests and when only flakey tests are found, we'd like to mark the job as sucessful. We tried doing this (see https://github.com/xwiki/xwiki-jenkins-pipeline/blob/master/vars/xwikiBuild.groovy#L230) but the job is still reported as failing in the Jenkins UI and in the logs.

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: