Uploaded image for project: 'Build'
  1. Build
  2. BUILD-1116

Support slack notification when there's failed build on feature branch

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Resolved
    • Neutral
    • None
    • None
    • None
    • None

    Description

      Context

      Currently, we are experiencing build errors on the feature branch, but we remain unaware of them until someone manually checks the build. Therefore, I would like to explore potential solutions:

      1. Provide option for slack notification on specific channel
      2. Or ability to set slack notification channel for managed modules

      example: 

      pages norsu feature branch: https://jenkins.magnolia-cms.com/job/modules/job/pages/job/feature%252FpagesVersion-6.3-norsu-SNAPSHOT/

      public slack channel: https://magnolia-cms.slack.com/archives/C05KGC6JR0F

       

      Possible "solution(s)"

      Pipeline-templates accept a new param

      a) New param to define a list of branch-names, for which we "send notifications" in case of build-failures.

       

      b) New param notifyForFeatureBranches

      default is ... false or true? I propose: true

      c) No new param - just change code that it always notifies if it's a feature-branch

      env.BRANCH_NAME.contains("feature/")

      Or using FeatureBranch.isFeatureBranch(env.BRANCH_NAME)

       

      In all cases - changes would be implemented in the script defaultAlways.groovy

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              cmeier Christoph Meier
              lam.nguyen Lam Nguyen Bao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Work Started:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 3h
                  3h