Update Jenkinsfile with new deployment credentials
This commit is contained in:
parent
57f5d0eac0
commit
f5d579f1a6
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -3,12 +3,17 @@ pipeline {
|
|||||||
|
|
||||||
environment {
|
environment {
|
||||||
// 远程服务器配置
|
// 远程服务器配置
|
||||||
DEPLOY_HOST = '180.76.180.105'
|
DEPLOY_HOST = credentials('deploy-host-168')
|
||||||
DEPLOY_USER = 'root' // 根据实际情况修改用户名
|
DEPLOY_USER = credentials('deploy-user-138')
|
||||||
DEPLOY_PATH = '/opt/nginx/html/ai'
|
SSH_CREDENTIALS_ID = 'deploy-ssh168-key'
|
||||||
|
DEPLOY_PATH = '/www/wwwroot/gitadmin.localgitserver.com/ai'
|
||||||
// 如果需要 SSH 密钥,可以在 Jenkins 中配置 SSH credentials
|
// 如果需要 SSH 密钥,可以在 Jenkins 中配置 SSH credentials
|
||||||
// SSH_CREDENTIALS = credentials('deploy-ssh-key')
|
// SSH_CREDENTIALS = credentials('deploy-ssh-key')
|
||||||
}
|
}
|
||||||
|
// 定义工具(如果需要指定 Node.js 版本,需先在 Jenkins 全局工具配置中配置 NodeJS 安装)
|
||||||
|
tools {
|
||||||
|
nodejs 'NodeJS-22' // 替换为你 Jenkins 中配置的 Node.js 工具名称(若无则注释此行)
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user