Skip to content
Jenkins
william.persico
My Views
All
authentik-deploy
#5
Pipeline Steps
Search
Manage Jenkins
Sign in
Status
Changes
Console Output
Edit Build Information
Delete build ‘#5’
Timings
Git Build Data
See Fingerprints
Pipeline Overview
Restart from Stage
Replay
Pipeline Steps
Workspaces
Previous Build
Step
Arguments
Status
Start of Pipeline - (4 min 31 sec in block)
Success
node - (4 min 31 sec in block)
Success
node block - (4 min 30 sec in block)
Success
stage - (1.6 sec in block)
Declarative: Checkout SCM
Success
stage block (Declarative: Checkout SCM) - (1.4 sec in block)
Success
checkout - (1.3 sec in self)
Success
withEnv - (4 min 28 sec in block)
GIT_BRANCH, GIT_COMMIT, GIT_PREVIOUS_COMMIT, GIT_URL
Success
withEnv block - (4 min 28 sec in block)
Success
timeout - (4 min 28 sec in block)
Success
timeout block - (4 min 28 sec in block)
Success
timestamps - (4 min 28 sec in block)
Success
timestamps block - (4 min 28 sec in block)
Success
stage - (3.9 sec in block)
Checkout
Success
stage block (Checkout) - (3.6 sec in block)
Success
script - (2.4 sec in block)
Success
script block - (1.8 sec in block)
Success
cleanWs - (0.13 sec in self)
Success
checkout - (1.4 sec in self)
Success
echo - (21 ms in self)
✅ Code checked out successfully
Success
pwd - (29 ms in self)
Success
echo - (66 ms in self)
📂 Working directory: /var/jenkins_home/workspace/authentik-deploy
Success
echo - (39 ms in self)
🌿 Git branch: null
Success
echo - (21 ms in self)
🏷️ Git commit: 161a2f52
Success
stage - (2.2 sec in block)
Validate Configuration
Success
stage block (Validate Configuration) - (1.9 sec in block)
Success
script - (1.7 sec in block)
Success
script block - (1.6 sec in block)
Success
echo - (65 ms in self)
🔍 Validating configuration files...
Success
fileExists - (0.14 sec in self)
docker-compose.yml
Success
echo - (68 ms in self)
✅ Found: docker-compose.yml
Success
fileExists - (0.15 sec in self)
.env.example
Success
echo - (64 ms in self)
✅ Found: .env.example
Success
sh - (0.63 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"
Success
sh - (0.34 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)"
Success
stage - (1.1 sec in block)
System Health Check
Success
stage block (System Health Check) - (0.89 sec in block)
Success
script - (0.69 sec in block)
Success
script block - (0.53 sec in block)
Success
echo - (63 ms in self)
🔍 Checking system resources...
Success
sh - (0.34 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"
Success
stage - (2 sec in block)
Verify Database
Success
stage block (Verify Database) - (1.8 sec in block)
Success
script - (1.4 sec in block)
Success
script block - (1.3 sec in block)
Success
echo - (50 ms in self)
🗄️ Verifying Authentik database exists in PostgreSQL...
Success
withCredentials - (1.1 sec in block)
Success
withCredentials block - (0.92 sec in block)
Success
sh - (0.87 sec in self)
Success
stage - (4 min 5 sec in block)
Deploy Authentik
Success
stage block (Deploy Authentik) - (4 min 5 sec in block)
Success
script - (4 min 5 sec in block)
Success
script block - (4 min 5 sec in block)
Success
echo - (44 ms in self)
🚀 Deploying Authentik...
Success
withCredentials - (4 min 5 sec in block)
Success
withCredentials block - (4 min 4 sec in block)
Success
sh - (4 min 4 sec in self)
Success
echo - (19 ms in self)
✅ Authentik deployed successfully
Success
stage - (7.9 sec in block)
Verify Deployment
Success
stage block (Verify Deployment) - (7.7 sec in block)
Success
script - (7.5 sec in block)
Success
script block - (7.3 sec in block)
Success
echo - (42 ms in self)
🔍 Verifying deployment...
Success
withCredentials - (7.1 sec in block)
Success
withCredentials block - (6.9 sec in block)
Success
sh - (6.8 sec in self)
Success
echo - (21 ms in self)
✅ Deployment verification completed
Success
stage - (2.2 sec in block)
Create Backup
Success
stage block (Create Backup) - (2 sec in block)
Success
script - (1.8 sec in block)
Success
script block - (1.7 sec in block)
Success
echo - (61 ms in self)
💾 Creating deployment backup: authentik_backup_20251114_150953.sql
Success
withCredentials - (1.4 sec in block)
Success
withCredentials block - (1.1 sec in block)
Success
sh - (1.1 sec in self)
Success
archiveArtifacts - (0.11 sec in self)
Success
stage - (2.6 sec in block)
Declarative: Post Actions
Success
stage block (Declarative: Post Actions) - (2.5 sec in block)
Success
script - (0.94 sec in block)
Success
script block - (0.69 sec in block)
Success
echo - (95 ms in self)
📋 Pipeline completed with status: SUCCESS
Success
echo - (65 ms in self)
🎯 Authentik Deployment Pipeline 📅 Build: 5 🌿 Branch: null 🏷️ Commit: 161a2f52 ⏱️ Duration: 4 min 31 sec and counting ✅ Status: SUCCESS
Success
sh - (0.34 sec in self)
find jenkins_backups -name "*.sql" -type f | sort -r | tail -n +6 | xargs rm -f || true
Success
script - (0.92 sec in block)
Success
script block - (0.74 sec in block)
Success
echo - (61 ms in self)
🎉 Authentik deployment successful!
Success
echo - (55 ms in self)
Success
echo - (57 ms in self)
📝 Next steps:
Success
echo - (56 ms in self)
1. Access Authentik: http://<server>:9000/
Success
echo - (57 ms in self)
2. Initial setup: http://<server>:9000/if/flow/initial-setup/
Success
echo - (54 ms in self)
3. Admin interface: http://<server>:9000/if/admin/
Success
echo - (54 ms in self)
Success
echo - (54 ms in self)
⚠️ Remember to configure:
Success
echo - (53 ms in self)
- Admin account (initial setup)
Success
echo - (52 ms in self)
- Email settings (for notifications)
Success
echo - (54 ms in self)
- SSL/TLS (reverse proxy recommended)
Success
echo - (26 ms in self)
- Applications and providers
Success
script - (0.55 sec in block)
Success
script block - (0.44 sec in block)
Success
echo - (28 ms in self)
🧹 Cleaning up workspace...
Success
sh - (0.32 sec in self)
rm -f *.tmp || true
Success
echo - (19 ms in self)
✅ Keeping containers running for production (main branch)
Success