File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -118,11 +118,33 @@ add_vendor_package "dev.vml.es" "acm.ui.content.example" "$ACM_VERSION" "zip"
118
118
git add -A
119
119
git commit -m " ACM packages added to all/pom.xml"
120
120
121
+ if [ -n " ${ACM_SLACK_WEBHOOK_URL} " ]; then
122
+ print_step " Configuring Slack notifications"
123
+
124
+ SLACK_CONFIG=$( cat << EOF
125
+ enabled=B"true"
126
+ webhookUrl="${ACM_SLACK_WEBHOOK_URL} "
127
+ timeoutMillis=I"10000"
128
+ id="acm"
129
+ EOF
130
+ )
131
+ mkdir -p " ui.config/src/main/content/jcr_root/apps/acme/osgiconfig"
132
+ echo " $SLACK_CONFIG " > ui.config/src/main/content/jcr_root/apps/acme/osgiconfig/config/dev.vml.es.acm.core.notification.slack.SlackFactory.acm.config
133
+
134
+ git add -A
135
+ git commit -m " Slack notification configuration added"
136
+
137
+ fi
138
+
121
139
if [ -n " ${AEM_CM_URL} " ]; then
122
140
print_step " Pushing to Adobe Cloud Manager"
123
141
git remote add adobe " ${AEM_CM_URL} "
124
142
git push adobe main -f
143
+
144
+ echo " "
145
+ echo " Build should start automatically in Adobe Cloud Manager if pipeline trigger is configured to 'On Git Changes'."
146
+ echo " If not, now you can start it manually in Adobe Cloud Manager UI."
147
+ echo " "
125
148
fi
126
149
127
150
print_step " Project '$PROJECT_NAME ' setup completed"
128
-
You can’t perform that action at this time.
0 commit comments