Skip to content
Failed

Console Output

Started by user Admin User
Obtained Jenkinsfile from git https://github.com/DrPersico/authentik.git
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/jenkins_home/workspace/authentik-deploy
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential f048d47c-1ea1-4dc6-b81c-f1ec032f0d77
Cloning the remote Git repository
Cloning repository https://github.com/DrPersico/authentik.git
 > git init /var/jenkins_home/workspace/authentik-deploy # timeout=10
Fetching upstream changes from https://github.com/DrPersico/authentik.git
 > git --version # timeout=10
 > git --version # 'git version 2.47.3'
using GIT_ASKPASS to set credentials Github
 > git fetch --tags --force --progress -- https://github.com/DrPersico/authentik.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/DrPersico/authentik.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10
Checking out Revision d66589da524ab77c4787d043cbdf8f0f46ce4bdc (refs/remotes/origin/main)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f d66589da524ab77c4787d043cbdf8f0f46ce4bdc # timeout=10
Commit message: "Initial commit: Authentik 2025.10.1 deployment with Jenkins CI/CD"
First time build. Skipping changelog.
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] timeout
Timeout set to expire in 20 min
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] script
[Pipeline] {
[Pipeline] cleanWs
14:04:39 [2025-11-14T14:04:39.329Z] [WS-CLEANUP] Deleting project workspace...
14:04:39 [2025-11-14T14:04:39.329Z] [WS-CLEANUP] Deferred wipeout is used...
14:04:39 [2025-11-14T14:04:39.348Z] [WS-CLEANUP] done
[Pipeline] checkout
14:04:39 [2025-11-14T14:04:39.455Z] Selected Git installation does not exist. Using Default
14:04:39 [2025-11-14T14:04:39.455Z] The recommended git tool is: NONE
14:04:39 [2025-11-14T14:04:39.456Z] using credential f048d47c-1ea1-4dc6-b81c-f1ec032f0d77
14:04:39 [2025-11-14T14:04:39.470Z] Cloning the remote Git repository
14:04:39 [2025-11-14T14:04:39.470Z] Cloning repository https://github.com/DrPersico/authentik.git
14:04:39 [2025-11-14T14:04:39.471Z]  > git init /var/jenkins_home/workspace/authentik-deploy # timeout=10
14:04:39 [2025-11-14T14:04:39.504Z] Fetching upstream changes from https://github.com/DrPersico/authentik.git
14:04:39 [2025-11-14T14:04:39.504Z]  > git --version # timeout=10
14:04:39 [2025-11-14T14:04:39.516Z]  > git --version # 'git version 2.47.3'
14:04:39 [2025-11-14T14:04:39.516Z] using GIT_ASKPASS to set credentials Github
14:04:39 [2025-11-14T14:04:39.537Z]  > git fetch --tags --force --progress -- https://github.com/DrPersico/authentik.git +refs/heads/*:refs/remotes/origin/* # timeout=10
14:04:40 [2025-11-14T14:04:40.562Z]  > git config remote.origin.url https://github.com/DrPersico/authentik.git # timeout=10
14:04:40 [2025-11-14T14:04:40.573Z]  > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
14:04:40 [2025-11-14T14:04:40.594Z] Avoid second fetch
14:04:40 [2025-11-14T14:04:40.594Z]  > git rev-parse refs/remotes/origin/main^{commit} # timeout=10
14:04:40 [2025-11-14T14:04:40.606Z] Checking out Revision d66589da524ab77c4787d043cbdf8f0f46ce4bdc (refs/remotes/origin/main)
14:04:40 [2025-11-14T14:04:40.607Z]  > git config core.sparsecheckout # timeout=10
14:04:40 [2025-11-14T14:04:40.617Z]  > git checkout -f d66589da524ab77c4787d043cbdf8f0f46ce4bdc # timeout=10
14:04:40 [2025-11-14T14:04:40.637Z] Commit message: "Initial commit: Authentik 2025.10.1 deployment with Jenkins CI/CD"
[Pipeline] echo
14:04:40 [2025-11-14T14:04:40.688Z] βœ… Code checked out successfully
[Pipeline] pwd
[Pipeline] echo
14:04:40 [2025-11-14T14:04:40.733Z] πŸ“‚ Working directory: /var/jenkins_home/workspace/authentik-deploy
[Pipeline] echo
14:04:40 [2025-11-14T14:04:40.784Z] 🌿 Git branch: null
[Pipeline] echo
14:04:40 [2025-11-14T14:04:40.816Z] 🏷️  Git commit: d66589da
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Validate Configuration)
[Pipeline] script
[Pipeline] {
[Pipeline] echo
14:04:42 [2025-11-14T14:04:42.001Z] πŸ” Validating configuration files...
[Pipeline] fileExists
[Pipeline] echo
14:04:42 [2025-11-14T14:04:42.205Z] βœ… Found: docker-compose.yml
[Pipeline] fileExists
[Pipeline] echo
14:04:42 [2025-11-14T14:04:42.409Z] βœ… Found: .env.example
[Pipeline] sh
14:04:42 [2025-11-14T14:04:42.723Z] + echo 🐳 Validating Docker Compose files...
14:04:42 [2025-11-14T14:04:42.723Z] 🐳 Validating Docker Compose files...
14:04:42 [2025-11-14T14:04:42.723Z] + docker compose -f docker-compose.yml config --quiet
14:04:42 [2025-11-14T14:04:42.723Z] error while interpolating services.postgresql.environment.POSTGRES_PASSWORD: required variable PG_PASS is missing a value: database password required
14:04:42 [2025-11-14T14:04:42.723Z] + echo ❌ Docker Compose validation failed
14:04:42 [2025-11-14T14:04:42.723Z] ❌ Docker Compose validation failed
14:04:42 [2025-11-14T14:04:42.723Z] + exit 1
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (System Health Check)
Stage "System Health Check" skipped due to earlier failure(s)
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Deploy Authentik)
Stage "Deploy Authentik" skipped due to earlier failure(s)
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Verify Deployment)
Stage "Verify Deployment" skipped due to earlier failure(s)
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Create Backup)
Stage "Create Backup" skipped due to earlier failure(s)
[Pipeline] getContext
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] script
[Pipeline] {
[Pipeline] echo
14:04:45 [2025-11-14T14:04:45.552Z] πŸ“‹ Pipeline completed with status: FAILURE
[Pipeline] echo
14:04:45 [2025-11-14T14:04:45.594Z] 
14:04:45 [2025-11-14T14:04:45.594Z]                     🎯 Authentik Deployment Pipeline
14:04:45 [2025-11-14T14:04:45.594Z]                     πŸ“… Build: 1
14:04:45 [2025-11-14T14:04:45.594Z]                     🌿 Branch: null
14:04:45 [2025-11-14T14:04:45.594Z]                     🏷️  Commit: d66589da
14:04:45 [2025-11-14T14:04:45.594Z]                     ⏱️  Duration: 14 sec and counting
14:04:45 [2025-11-14T14:04:45.594Z]                     βœ… Status: FAILURE
14:04:45 [2025-11-14T14:04:45.594Z]                 
[Pipeline] sh
14:04:45 [2025-11-14T14:04:45.878Z] + + find jenkins_backups -namesort *.sql -r -type
14:04:45 [2025-11-14T14:04:45.878Z]  f
14:04:45 [2025-11-14T14:04:45.878Z] + tail -n +6
14:04:45 [2025-11-14T14:04:45.878Z] + xargs rm -f
14:04:45 [2025-11-14T14:04:45.878Z] find: β€˜jenkins_backups’: No such file or directory
[Pipeline] }
[Pipeline] // script
[Pipeline] script
[Pipeline] {
[Pipeline] echo
14:04:46 [2025-11-14T14:04:46.148Z] ❌ Authentik deployment failed!
[Pipeline] sh
14:04:46 [2025-11-14T14:04:46.437Z] + echo 🐳 Container logs:
14:04:46 [2025-11-14T14:04:46.438Z] 🐳 Container logs:
14:04:46 [2025-11-14T14:04:46.438Z] + docker compose logs --tail=100
14:04:46 [2025-11-14T14:04:46.689Z] error while interpolating services.postgresql.environment.POSTGRES_PASSWORD: required variable PG_PASS is missing a value: database password required
14:04:46 [2025-11-14T14:04:46.689Z] + echo Could not get container logs
14:04:46 [2025-11-14T14:04:46.689Z] Could not get container logs
14:04:46 [2025-11-14T14:04:46.689Z] + echo πŸ“‹ System status:
14:04:46 [2025-11-14T14:04:46.689Z] πŸ“‹ System status:
14:04:46 [2025-11-14T14:04:46.689Z] + docker compose ps
14:04:46 [2025-11-14T14:04:46.939Z] time="2025-11-14T14:04:46Z" level=warning msg="The \"PG_PASS\" variable is not set. Defaulting to a blank string."
14:04:46 [2025-11-14T14:04:46.939Z] error while interpolating services.server.environment.AUTHENTIK_SECRET_KEY: required variable AUTHENTIK_SECRET_KEY is missing a value: secret key required
14:04:46 [2025-11-14T14:04:46.939Z] + echo Could not get container status
14:04:46 [2025-11-14T14:04:46.940Z] Could not get container status
[Pipeline] }
[Pipeline] // script
[Pipeline] script
[Pipeline] {
[Pipeline] echo
14:04:47 [2025-11-14T14:04:47.240Z] 🧹 Cleaning up workspace...
[Pipeline] sh
14:04:47 [2025-11-14T14:04:47.530Z] + rm -f *.tmp
[Pipeline] echo
14:04:47 [2025-11-14T14:04:47.594Z] βœ… Keeping containers running for production (main branch)
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE