| Step | Arguments | Status | ||
|---|---|---|---|---|
| Start of Pipeline - (16 sec in block) | ||||
| node - (14 sec in block) | ||||
| node block - (14 sec in block) | ||||
| stage - (1.7 sec in block) | Declarative: Checkout SCM | |||
| stage block (Declarative: Checkout SCM) - (1.5 sec in block) | ||||
| checkout - (1.4 sec in self) | ||||
| withEnv - (12 sec in block) | GIT_BRANCH, GIT_COMMIT, GIT_PREVIOUS_COMMIT, GIT_URL | |||
| withEnv block - (12 sec in block) | ||||
| timeout - (12 sec in block) | ||||
| timeout block - (12 sec in block) | ||||
| timestamps - (12 sec in block) | ||||
| timestamps block - (12 sec in block) | ||||
| stage - (2.3 sec in block) | Checkout | |||
| stage block (Checkout) - (2.1 sec in block) | ||||
| script - (1.9 sec in block) | ||||
| script block - (1.7 sec in block) | ||||
| cleanWs - (0.12 sec in self) | ||||
| checkout - (1.3 sec in self) | ||||
| echo - (20 ms in self) | ✅ Code checked out successfully | |||
| pwd - (27 ms in self) | ||||
| echo - (60 ms in self) | 📂 Working directory: /var/jenkins_home/workspace/authentik-deploy | |||
| echo - (37 ms in self) | 🌿 Git branch: null | |||
| echo - (82 ms in self) | 🏷️ Git commit: 1d0af073 | |||
| stage - (1.9 sec in block) | Validate Configuration | |||
| stage block (Validate Configuration) - (1.8 sec in block) | ||||
| script - (1.6 sec in block) | ||||
| script block - (1.5 sec in block) | ||||
| echo - (53 ms in self) | 🔍 Validating configuration files... | |||
| fileExists - (0.13 sec in self) | docker-compose.yml | |||
| echo - (55 ms in self) | ✅ Found: docker-compose.yml | |||
| fileExists - (0.13 sec in self) | .env.example | |||
| echo - (58 ms in self) | ✅ Found: .env.example | |||
| sh - (0.61 sec in self) | echo "🐳 Validating Docker Compose files..." # Set dummy values for required environment variables during validation export PG_PASS="validation_dummy_password" export AUTHENTIK_SECRET_KEY="validation_dummy_secret_key_min_60_chars_aaaaaaaaaaaaaaaaaaaaaa" docker compose -f docker-compose.yml config --quiet || { echo "❌ Docker Compose validation failed" exit 1 } echo "✅ Docker Compose syntax is valid" | |||
| sh - (0.33 sec in self) | echo "🔐 Checking Jenkins credentials configuration..." echo "ℹ️ Note: Make sure you have configured these Jenkins credentials:" echo " - authentik-pg-pass (Secret Text): PostgreSQL password" echo " - authentik-secret-key (Secret Text): Authentik secret key (60+ chars)" echo " - authentik-pg-db (String, optional): Database name (default: authentik)" echo " - authentik-pg-user (String, optional): Database user (default: authentik)" echo " - authentik-postgres-host (String, optional): PostgreSQL host (default: postgres-postgres)" echo " - authentik-postgres-port (String, optional): PostgreSQL port (default: 5432)" echo "📝 Configure in: Jenkins → Manage Jenkins → Manage Credentials → (global)" | |||
| stage - (1 sec in block) | System Health Check | |||
| stage block (System Health Check) - (0.9 sec in block) | ||||
| script - (0.77 sec in block) | ||||
| script block - (0.65 sec in block) | ||||
| echo - (29 ms in self) | 🔍 Checking system resources... | |||
| sh - (0.53 sec in self) | # Check Docker is running docker info > /dev/null && echo "✅ Docker is running" # Check available resources echo "💾 Memory information:" free -h || sysctl hw.memsize || echo "Memory check not available" echo "💿 Disk space:" df -h . || echo "Disk check not available" echo "🖥️ CPU information:" nproc || sysctl -n hw.ncpu || echo "CPU check not available" | |||
| stage - (2.1 sec in block) | Verify Database | |||
| stage block (Verify Database) - (1.9 sec in block) | ||||
| script - (1.4 sec in block) | ||||
| script block - (1.3 sec in block) | ||||
| echo - (48 ms in self) | 🗄️ Verifying Authentik database exists in PostgreSQL... | |||
| withCredentials - (1.1 sec in block) | ||||
| withCredentials block - (0.72 sec in block) | ||||
| sh - (0.62 sec in self) | ||||
| stage - (0.3 sec in block) | Deploy Authentik | |||
| stage block (Deploy Authentik) - (0.11 sec in block) | ||||
| getContext - (30 ms in self) | ||||
| stage - (0.3 sec in block) | Verify Deployment | |||
| stage block (Verify Deployment) - (0.11 sec in block) | ||||
| getContext - (30 ms in self) | ||||
| stage - (0.3 sec in block) | Create Backup | |||
| stage block (Create Backup) - (0.11 sec in block) | ||||
| getContext - (29 ms in self) | ||||
| stage - (3.5 sec in block) | Declarative: Post Actions | |||
| stage block (Declarative: Post Actions) - (3.4 sec in block) | ||||
| script - (1.4 sec in block) | ||||
| script block - (0.95 sec in block) | ||||
| echo - (79 ms in self) | 📋 Pipeline completed with status: FAILURE | |||
| echo - (58 ms in self) | 🎯 Authentik Deployment Pipeline 📅 Build: 4 🌿 Branch: null 🏷️ Commit: 1d0af073 ⏱️ Duration: 15 sec and counting ✅ Status: FAILURE | |||
| sh - (0.34 sec in self) | find jenkins_backups -name "*.sql" -type f | sort -r | tail -n +6 | xargs rm -f || true | |||
| script - (1.2 sec in block) | ||||
| script block - (1 sec in block) | ||||
| echo - (55 ms in self) | ❌ Authentik deployment failed! | |||
| sh - (0.84 sec in self) | echo "🐳 Container logs:" docker compose logs --tail=100 || echo "Could not get container logs" echo "📋 System status:" docker compose ps || echo "Could not get container status" | |||
| script - (0.6 sec in block) | ||||
| script block - (0.48 sec in block) | ||||
| echo - (28 ms in self) | 🧹 Cleaning up workspace... | |||
| sh - (0.32 sec in self) | rm -f *.tmp || true | |||
| echo - (18 ms in self) | ✅ Keeping containers running for production (main branch) |