Skip to content

Commit a6a76f5

Browse files
Slack notifications - test
1 parent f2bce4f commit a6a76f5

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

test/project/setup.sh

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,33 @@ add_vendor_package "dev.vml.es" "acm.ui.content.example" "$ACM_VERSION" "zip"
118118
git add -A
119119
git commit -m "ACM packages added to all/pom.xml"
120120

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+
121139
if [ -n "${AEM_CM_URL}" ]; then
122140
print_step "Pushing to Adobe Cloud Manager"
123141
git remote add adobe "${AEM_CM_URL}"
124142
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 ""
125148
fi
126149

127150
print_step "Project '$PROJECT_NAME' setup completed"
128-

0 commit comments

Comments
 (0)