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 > git rev-parse --resolve-git-dir /var/jenkins_home/workspace/authentik-deploy/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/DrPersico/authentik.git # 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 rev-parse refs/remotes/origin/main^{commit} # timeout=10 Checking out Revision 257f5905c669ce41bdfd4ef085167099a67bc31d (refs/remotes/origin/main) > git config core.sparsecheckout # timeout=10 > git checkout -f 257f5905c669ce41bdfd4ef085167099a67bc31d # timeout=10 Commit message: "Update documentation for manual database creation" > git rev-list --no-walk ac7451d034ce3c1bece3f0941ccdfe174b2c734c # timeout=10 [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 15:00:51 [2025-11-14T15:00:51.336Z] [WS-CLEANUP] Deleting project workspace... 15:00:51 [2025-11-14T15:00:51.336Z] [WS-CLEANUP] Deferred wipeout is used... 15:00:51 [2025-11-14T15:00:51.353Z] [WS-CLEANUP] done [Pipeline] checkout 15:00:51 [2025-11-14T15:00:51.463Z] Selected Git installation does not exist. Using Default 15:00:51 [2025-11-14T15:00:51.463Z] The recommended git tool is: NONE 15:00:51 [2025-11-14T15:00:51.464Z] using credential f048d47c-1ea1-4dc6-b81c-f1ec032f0d77 15:00:51 [2025-11-14T15:00:51.479Z] Cloning the remote Git repository 15:00:51 [2025-11-14T15:00:51.479Z] Cloning repository https://github.com/DrPersico/authentik.git 15:00:51 [2025-11-14T15:00:51.480Z] > git init /var/jenkins_home/workspace/authentik-deploy # timeout=10 15:00:51 [2025-11-14T15:00:51.509Z] Fetching upstream changes from https://github.com/DrPersico/authentik.git 15:00:51 [2025-11-14T15:00:51.509Z] > git --version # timeout=10 15:00:51 [2025-11-14T15:00:51.523Z] > git --version # 'git version 2.47.3' 15:00:51 [2025-11-14T15:00:51.523Z] using GIT_ASKPASS to set credentials Github 15:00:51 [2025-11-14T15:00:51.550Z] > git fetch --tags --force --progress -- https://github.com/DrPersico/authentik.git +refs/heads/*:refs/remotes/origin/* # timeout=10 15:00:52 [2025-11-14T15:00:52.703Z] > git config remote.origin.url https://github.com/DrPersico/authentik.git # timeout=10 15:00:52 [2025-11-14T15:00:52.717Z] > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 15:00:52 [2025-11-14T15:00:52.741Z] Avoid second fetch 15:00:52 [2025-11-14T15:00:52.742Z] > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 15:00:52 [2025-11-14T15:00:52.756Z] Checking out Revision 257f5905c669ce41bdfd4ef085167099a67bc31d (refs/remotes/origin/main) 15:00:52 [2025-11-14T15:00:52.756Z] > git config core.sparsecheckout # timeout=10 15:00:52 [2025-11-14T15:00:52.769Z] > git checkout -f 257f5905c669ce41bdfd4ef085167099a67bc31d # timeout=10 15:00:52 [2025-11-14T15:00:52.795Z] Commit message: "Update documentation for manual database creation" [Pipeline] echo 15:00:52 [2025-11-14T15:00:52.862Z] βœ… Code checked out successfully [Pipeline] pwd [Pipeline] echo 15:00:52 [2025-11-14T15:00:52.919Z] πŸ“‚ Working directory: /var/jenkins_home/workspace/authentik-deploy [Pipeline] echo 15:00:53 [2025-11-14T15:00:53.886Z] 🌿 Git branch: null [Pipeline] echo 15:00:54 [2025-11-14T15:00:54.087Z] 🏷️ Git commit: 257f5905 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Validate Configuration) [Pipeline] script [Pipeline] { [Pipeline] echo 15:00:55 [2025-11-14T15:00:55.024Z] πŸ” Validating configuration files... [Pipeline] fileExists [Pipeline] echo 15:00:55 [2025-11-14T15:00:55.270Z] βœ… Found: docker-compose.yml [Pipeline] fileExists [Pipeline] echo 15:00:55 [2025-11-14T15:00:55.485Z] βœ… Found: .env.example [Pipeline] sh 15:00:55 [2025-11-14T15:00:55.806Z] + echo 🐳 Validating Docker Compose files... 15:00:55 [2025-11-14T15:00:55.806Z] 🐳 Validating Docker Compose files... 15:00:55 [2025-11-14T15:00:55.806Z] + export PG_PASS=validation_dummy_password 15:00:55 [2025-11-14T15:00:55.806Z] + export AUTHENTIK_SECRET_KEY=validation_dummy_secret_key_min_60_chars_aaaaaaaaaaaaaaaaaaaaaa 15:00:55 [2025-11-14T15:00:55.806Z] + docker compose -f docker-compose.yml config --quiet 15:00:56 [2025-11-14T15:00:56.057Z] env file /var/jenkins_home/workspace/authentik-deploy/.env not found: stat /var/jenkins_home/workspace/authentik-deploy/.env: no such file or directory 15:00:56 [2025-11-14T15:00:56.057Z] + echo ❌ Docker Compose validation failed 15:00:56 [2025-11-14T15:00:56.057Z] ❌ Docker Compose validation failed 15:00:56 [2025-11-14T15:00:56.057Z] + 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] { (Verify Database) Stage "Verify Database" 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 15:00:59 [2025-11-14T15:00:59.270Z] πŸ“‹ Pipeline completed with status: FAILURE [Pipeline] echo 15:00:59 [2025-11-14T15:00:59.344Z] 15:00:59 [2025-11-14T15:00:59.344Z] 🎯 Authentik Deployment Pipeline 15:00:59 [2025-11-14T15:00:59.344Z] πŸ“… Build: 3 15:00:59 [2025-11-14T15:00:59.344Z] 🌿 Branch: null 15:00:59 [2025-11-14T15:00:59.344Z] 🏷️ Commit: 257f5905 15:00:59 [2025-11-14T15:00:59.344Z] ⏱️ Duration: 13 sec and counting 15:00:59 [2025-11-14T15:00:59.344Z] βœ… Status: FAILURE 15:00:59 [2025-11-14T15:00:59.344Z] [Pipeline] sh 15:00:59 [2025-11-14T15:00:59.659Z] + find jenkins_backups -name *.sql -type f 15:00:59 [2025-11-14T15:00:59.659Z] + sort -r 15:00:59 [2025-11-14T15:00:59.659Z] + tail -n +6 15:00:59 [2025-11-14T15:00:59.659Z] + xargs rm -f 15:00:59 [2025-11-14T15:00:59.659Z] find: β€˜jenkins_backups’: No such file or directory [Pipeline] } [Pipeline] // script [Pipeline] script [Pipeline] { [Pipeline] echo 15:01:00 [2025-11-14T15:01:00.094Z] ❌ Authentik deployment failed! [Pipeline] sh 15:01:00 [2025-11-14T15:01:00.411Z] + echo 🐳 Container logs: 15:01:00 [2025-11-14T15:01:00.411Z] 🐳 Container logs: 15:01:00 [2025-11-14T15:01:00.411Z] + docker compose logs --tail=100 15:01:00 [2025-11-14T15:01:00.662Z] error while interpolating services.server.environment.AUTHENTIK_SECRET_KEY: required variable AUTHENTIK_SECRET_KEY is missing a value: secret key required 15:01:00 [2025-11-14T15:01:00.662Z] + echo Could not get container logs 15:01:00 [2025-11-14T15:01:00.662Z] Could not get container logs 15:01:00 [2025-11-14T15:01:00.662Z] + echo πŸ“‹ System status: 15:01:00 [2025-11-14T15:01:00.662Z] πŸ“‹ System status: 15:01:00 [2025-11-14T15:01:00.662Z] + docker compose ps 15:01:00 [2025-11-14T15:01:00.913Z] error while interpolating services.server.environment.AUTHENTIK_SECRET_KEY: required variable AUTHENTIK_SECRET_KEY is missing a value: secret key required 15:01:00 [2025-11-14T15:01:00.913Z] + echo Could not get container status 15:01:00 [2025-11-14T15:01:00.913Z] Could not get container status [Pipeline] } [Pipeline] // script [Pipeline] script [Pipeline] { [Pipeline] echo 15:01:01 [2025-11-14T15:01:01.527Z] 🧹 Cleaning up workspace... [Pipeline] sh 15:01:01 [2025-11-14T15:01:01.848Z] + rm -f *.tmp [Pipeline] echo 15:01:01 [2025-11-14T15:01:01.954Z] βœ… 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