Set PATH for the remote deploy command.
office.sejong.dev/pipeline/head This commit looks good

Non-login SSH sessions omit /usr/local/bin, where the NAS keeps docker.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ysj7705andCursor committed 2026-09-11 16:55:06 +09:00
1 parent 4bffd65b32
commit 194eb318d1
2 files changed
+8 -1

No files matched your search

Vendored
+1 -1
View File
@@ -88,7 +88,7 @@ pipeline {
execTimeout: 1800000,
usePty: true,
execCommand: """
sudo -n su -c 'set -eu; cd "${env.DEPLOY_DIR}"; docker compose pull; docker compose up -d'
sudo -n su -c 'set -eu; export PATH=/usr/local/bin:/usr/bin:/bin; cd "${env.DEPLOY_DIR}"; docker compose pull; docker compose up -d'
""".stripIndent().trim()
)
]