From f5d579f1a60dc7b1d0d79497189b2438443297ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E9=B1=BC=E5=92=8C=E9=87=91=E9=B1=BC?= <1711559666@qq.com> Date: Thu, 22 Jan 2026 11:53:18 +0800 Subject: [PATCH] Update Jenkinsfile with new deployment credentials --- Jenkinsfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 85541d2..cd0e441 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,12 +3,17 @@ pipeline { environment { // 远程服务器配置 - DEPLOY_HOST = '180.76.180.105' - DEPLOY_USER = 'root' // 根据实际情况修改用户名 - DEPLOY_PATH = '/opt/nginx/html/ai' + DEPLOY_HOST = credentials('deploy-host-168') + DEPLOY_USER = credentials('deploy-user-138') + SSH_CREDENTIALS_ID = 'deploy-ssh168-key' + DEPLOY_PATH = '/www/wwwroot/gitadmin.localgitserver.com/ai' // 如果需要 SSH 密钥,可以在 Jenkins 中配置 SSH credentials // SSH_CREDENTIALS = credentials('deploy-ssh-key') } + // 定义工具(如果需要指定 Node.js 版本,需先在 Jenkins 全局工具配置中配置 NodeJS 安装) + tools { + nodejs 'NodeJS-22' // 替换为你 Jenkins 中配置的 Node.js 工具名称(若无则注释此行) + } stages { stage('Checkout') {