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 ac7451d034ce3c1bece3f0941ccdfe174b2c734c (refs/remotes/origin/main)
> git config core.sparsecheckout # timeout=10
> git checkout -f ac7451d034ce3c1bece3f0941ccdfe174b2c734c # timeout=10
Commit message: "Connect to existing PostgreSQL 18 server"
> git rev-list --no-walk d66589da524ab77c4787d043cbdf8f0f46ce4bdc # 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
14:53:31 [2025-11-14T14:53:31.428Z] [WS-CLEANUP] Deleting project workspace...
14:53:31 [2025-11-14T14:53:31.428Z] [WS-CLEANUP] Deferred wipeout is used...
14:53:31 [2025-11-14T14:53:31.446Z] [WS-CLEANUP] done
[Pipeline] checkout
14:53:31 [2025-11-14T14:53:31.537Z] Selected Git installation does not exist. Using Default
14:53:31 [2025-11-14T14:53:31.537Z] The recommended git tool is: NONE
14:53:31 [2025-11-14T14:53:31.538Z] using credential f048d47c-1ea1-4dc6-b81c-f1ec032f0d77
14:53:31 [2025-11-14T14:53:31.549Z] Cloning the remote Git repository
14:53:31 [2025-11-14T14:53:31.549Z] Cloning repository https://github.com/DrPersico/authentik.git
14:53:31 [2025-11-14T14:53:31.550Z] > git init /var/jenkins_home/workspace/authentik-deploy # timeout=10
14:53:31 [2025-11-14T14:53:31.576Z] Fetching upstream changes from https://github.com/DrPersico/authentik.git
14:53:31 [2025-11-14T14:53:31.576Z] > git --version # timeout=10
14:53:31 [2025-11-14T14:53:31.588Z] > git --version # 'git version 2.47.3'
14:53:31 [2025-11-14T14:53:31.588Z] using GIT_ASKPASS to set credentials Github
14:53:31 [2025-11-14T14:53:31.610Z] > git fetch --tags --force --progress -- https://github.com/DrPersico/authentik.git +refs/heads/*:refs/remotes/origin/* # timeout=10
14:53:32 [2025-11-14T14:53:32.673Z] > git config remote.origin.url https://github.com/DrPersico/authentik.git # timeout=10
14:53:32 [2025-11-14T14:53:32.684Z] > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
14:53:32 [2025-11-14T14:53:32.748Z] Avoid second fetch
14:53:32 [2025-11-14T14:53:32.748Z] > git rev-parse refs/remotes/origin/main^{commit} # timeout=10
14:53:32 [2025-11-14T14:53:32.760Z] Checking out Revision ac7451d034ce3c1bece3f0941ccdfe174b2c734c (refs/remotes/origin/main)
14:53:32 [2025-11-14T14:53:32.760Z] > git config core.sparsecheckout # timeout=10
14:53:32 [2025-11-14T14:53:32.771Z] > git checkout -f ac7451d034ce3c1bece3f0941ccdfe174b2c734c # timeout=10
14:53:32 [2025-11-14T14:53:32.837Z] Commit message: "Connect to existing PostgreSQL 18 server"
[Pipeline] echo
14:53:33 [2025-11-14T14:53:33.036Z] β
Code checked out successfully
[Pipeline] pwd
[Pipeline] echo
14:53:33 [2025-11-14T14:53:33.187Z] π Working directory: /var/jenkins_home/workspace/authentik-deploy
[Pipeline] echo
14:53:33 [2025-11-14T14:53:33.290Z] πΏ Git branch: null
[Pipeline] echo
14:53:33 [2025-11-14T14:53:33.356Z] π·οΈ Git commit: ac7451d0
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Validate Configuration)
[Pipeline] script
[Pipeline] {
[Pipeline] echo
14:53:34 [2025-11-14T14:53:34.609Z] π Validating configuration files...
[Pipeline] fileExists
[Pipeline] echo
14:53:34 [2025-11-14T14:53:34.809Z] β
Found: docker-compose.yml
[Pipeline] fileExists
[Pipeline] echo
14:53:35 [2025-11-14T14:53:35.012Z] β
Found: .env.example
[Pipeline] sh
14:53:35 [2025-11-14T14:53:35.332Z] + echo π³ Validating Docker Compose files...
14:53:35 [2025-11-14T14:53:35.332Z] π³ Validating Docker Compose files...
14:53:35 [2025-11-14T14:53:35.332Z] + docker compose -f docker-compose.yml config --quiet
14:53:35 [2025-11-14T14:53:35.332Z] error while interpolating services.server.environment.AUTHENTIK_SECRET_KEY: required variable AUTHENTIK_SECRET_KEY is missing a value: secret key required
14:53:35 [2025-11-14T14:53:35.332Z] + echo β Docker Compose validation failed
14:53:35 [2025-11-14T14:53:35.332Z] β Docker Compose validation failed
14:53:35 [2025-11-14T14:53:35.332Z] + 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] { (Initialize Database)
Stage "Initialize 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
14:53:38 [2025-11-14T14:53:38.070Z] π Pipeline completed with status: FAILURE
[Pipeline] echo
14:53:38 [2025-11-14T14:53:38.121Z]
14:53:38 [2025-11-14T14:53:38.121Z] π― Authentik Deployment Pipeline
14:53:38 [2025-11-14T14:53:38.121Z] π
Build: 2
14:53:38 [2025-11-14T14:53:38.121Z] πΏ Branch: null
14:53:38 [2025-11-14T14:53:38.121Z] π·οΈ Commit: ac7451d0
14:53:38 [2025-11-14T14:53:38.121Z] β±οΈ Duration: 13 sec and counting
14:53:38 [2025-11-14T14:53:38.121Z] β
Status: FAILURE
14:53:38 [2025-11-14T14:53:38.121Z]
[Pipeline] sh
14:53:38 [2025-11-14T14:53:38.412Z] + find jenkins_backups -name *.sql -type f
14:53:38 [2025-11-14T14:53:38.413Z] + tail -n +6
14:53:38 [2025-11-14T14:53:38.413Z] + sort -r
14:53:38 [2025-11-14T14:53:38.413Z] + xargs rm -f
14:53:38 [2025-11-14T14:53:38.413Z] find: βjenkins_backupsβ: No such file or directory
[Pipeline] }
[Pipeline] // script
[Pipeline] script
[Pipeline] {
[Pipeline] echo
14:53:38 [2025-11-14T14:53:38.727Z] β Authentik deployment failed!
[Pipeline] sh
14:53:39 [2025-11-14T14:53:39.018Z] + echo π³ Container logs:
14:53:39 [2025-11-14T14:53:39.018Z] π³ Container logs:
14:53:39 [2025-11-14T14:53:39.018Z] + docker compose logs --tail=100
14:53:39 [2025-11-14T14:53:39.269Z] error while interpolating services.server.environment.AUTHENTIK_SECRET_KEY: required variable AUTHENTIK_SECRET_KEY is missing a value: secret key required
14:53:39 [2025-11-14T14:53:39.269Z] + echo Could not get container logs
14:53:39 [2025-11-14T14:53:39.269Z] Could not get container logs
14:53:39 [2025-11-14T14:53:39.269Z] + echo π System status:
14:53:39 [2025-11-14T14:53:39.269Z] π System status:
14:53:39 [2025-11-14T14:53:39.269Z] + docker compose ps
14:53:39 [2025-11-14T14:53:39.520Z] time="2025-11-14T14:53:39Z" level=warning msg="The \"PG_PASS\" variable is not set. Defaulting to a blank string."
14:53:39 [2025-11-14T14:53:39.520Z] error while interpolating services.server.environment.AUTHENTIK_SECRET_KEY: required variable AUTHENTIK_SECRET_KEY is missing a value: secret key required
14:53:39 [2025-11-14T14:53:39.520Z] + echo Could not get container status
14:53:39 [2025-11-14T14:53:39.520Z] Could not get container status
[Pipeline] }
[Pipeline] // script
[Pipeline] script
[Pipeline] {
[Pipeline] echo
14:53:39 [2025-11-14T14:53:39.868Z] π§Ή Cleaning up workspace...
[Pipeline] sh
14:53:40 [2025-11-14T14:53:40.158Z] + rm -f *.tmp
[Pipeline] echo
14:53:40 [2025-11-14T14:53:40.228Z] β
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