Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/synthetics/ci-cd/jenkins.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ stage('Run Sematext monitors') {
--header 'content-type: application/json' \
--data '[{"monitorId": 276}]' > results.txt
cat results.txt
if [ \$(head -1 results.txt | grep -c 'failed') -ne 0 ]; then exit 1; fi
if [ \$(head -1 results.txt | grep -c 'failed') -ne 0 ]; then exit 1; else curl -XPOST "https://event-receiver.sematext.com/1111111-2222-3333-4444-555555555555/event" -d '
{
"timestamp" : "2024-02-17T15:29:04+0100",
"message" : "Deployment successful",
"severity": "info",
"type" : "deployment"
}' fi
"""
}
}
Expand Down
4 changes: 4 additions & 0 deletions docs/synthetics/ci-cd/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ Using the run monitor API, you can integrate [Sematext Synthetics](../index.md)
- [GitLab CI/CD](./gitlab-ci-cd/)
- [Vercel](./vercel/)
- [Netlify](./netlify/)

## Deployment Tracking

You can also track successful deployments by [sending deployment events to Sematext](../../events/event-examples/#application-deployment-tracking) using the [events API](../../events/event-api/).