Details
-
Improvement
-
Resolution: Resolved
-
Neutral
-
None
-
None
-
None
-
None
-
-
Empty show more show less
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:
- Provide option for slack notification on specific channel
- 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