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

Unstable builds are marked as FAILED in Bitbucket

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • - Jenkins 2.138.1
      - Bitbucket Branch Source Plugin 2.2.12
      - Bitbucket Server 5.9.0

      Currently unstable builds in Jenkins are marked as failed in Bitbucket and I don't see a way how to configure it differently

      https://github.com/jenkinsci/bitbucket-branch-source-plugin/blob/8c2c20f4443c11798a032a9f03523c73befd6296/src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketBuildStatusNotifications.java#L119

      There may be reasons why an unstable build still may be considered as "successful" in Bitbucket, even so the Jenkins build is unstable - i.e. you have a threshold set which allows certain tests to be failing but still consider the Jenkins test as not failed. The plugin should respect that.
      As such builds are considered failed, the code cannot be merged if the merge checks are available.

      The best solution would be to have a parameter "[ ] consider UNSTABLE builds as SUCCESS" where you can define the behavior

      • per team folder
      • jenkins wide

            Unassigned Unassigned
            papanito papanito
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: