n8n Workflow Automation
Built and tested working automation workflows in n8n, exploring workflow orchestration and event-driven automation relevant to DevOps operations.
n8n Notification & Jenkins Freestyle CI/CD Demo
Switch between three individual projects (Clinic Portal on AWS EC2, E-Commerce Shop On-Premises, University Portal on Azure VM), run the n8n Webhook → IF → Telegram/Slack vs Email/DB flow, and test the 9-stage Jenkins Freestyle pipeline & Quality Gate.
Select Individual Project
Pick any client/server project below to see its real n8n notification workflow and Jenkins Freestyle pipeline.
I set up GitLab webhooks to trigger a Jenkins Freestyle build on an EC2 runner. When tests and the SonarQube Quality Gate pass, Docker Compose rolls out the new build and n8n notifies our devs on Telegram and Slack.
Smart DevOps Notifications & Automation
Monitor • Notify • Automate · Webhook: POST /webhook/clinic-gitlab-events
Key Features
- Real-time DevOps Notifications
- Smart Event Filtering
- Multi-Channel Alerts
Daily Digest: Every day at 09:00 AM
Node Setup
- Method:
- POST
- Path:
- /webhook/clinic-gitlab-events
- Verification:
- X-Gitlab-Token header
Sample Output Payload
{
"event_name": "push",
"ref": "refs/heads/main",
"commit_sha": "a4f92c8",
"author": "kamrul.hasan",
"project": "clinic/portal-api"
}Build → Test → Analyze → Deploy (clinic-portal-freestyle)
Repo: git@gitlab.internal:clinic/portal-api.git · Target: AWS EC2 (Docker Compose)
[GitLab Plugin] Push event received for refs/heads/main (commit a4f92c8). Starting job #102.
Jenkins Dashboard (Demo View)
clinic-portal-freestyle#102 (a4f92c8) — Patient slot validation fix deployed cleanly to AWS EC2.
Deployment Successful!
Application is Live and Healthy on AWS EC2 · Ubuntu 24.04
https://clinic-ops.internal/health · HTTP 200Key Highlights
- Automated CI/CD Pipeline
- SonarQube Integration
- Docker Deployment
Technology Stack
- n8n
- Workflow Orchestration
- Event-Driven Automation
Verified References
Capabilities & Features
- Smart DevOps Notifications (n8n): GitLab Webhook -> IF Event Filter -> Telegram & Slack Alerts (True) or Email + DB Log (False)
- Daily 9 AM Digest & Clean Audit Trail: Schedule Trigger summarizes build health while logging non-production pushes to SQL
- Jenkins Freestyle CI/CD Pipeline: GitLab Checkout -> App Build -> Tests -> SonarQube Analysis -> Quality Gate -> Docker Build -> Deploy -> Health Check
- Per-Project Isolated Runners: Dedicated setups for Clinic Portal (AWS EC2), E-Commerce Shop (On-Prem Linux), and University Portal (Azure VM)
Engineering Role & Scope
Sole DevOps engineer setting up self-hosted GitLab webhooks, n8n alert workflows, and Jenkins Freestyle CI/CD pipelines across EC2, on-prem Ubuntu, and Azure VMs.
Problem & Operational Context
Developers kept pushing code without knowing when builds broke, passed SonarQube, or went live—and manual Slack/Telegram updates after SSH deploys took up too much daily time.
Architecture Notes
Two connected workflows per project: (1) n8n receives GitLab webhooks, filters main vs feature branches with an IF node, sends Telegram/Slack alerts or Email+DB logs, and emails a 9 AM daily report; (2) Jenkins Freestyle runs Checkout, Build, Tests, SonarQube Quality Gate, Docker Build, Target Deploy, and HTTP Health Check.
Lessons Learned
Filtering non-production branches in n8n stops alert fatigue in Telegram and Slack while still logging every push, and enforcing SonarQube Quality Gates inside Jenkins prevents broken Docker rollouts.