Commit a0d9366f authored by Auto Backup's avatar Auto Backup

refactor: remove environment check stage from Jenkinsfile

parent bdbff986
...@@ -60,31 +60,6 @@ pipeline { ...@@ -60,31 +60,6 @@ pipeline {
} }
stages { stages {
stage('环境排查') {
steps {
script {
try {
echo "🚀 开始运行环境检测..."
// 使用新创建的环境检测脚本
def envCheckResult = runPowerShellWithOutput("node ./check-environment.js")
echo "环境检测结果:"
echo envCheckResult
// 如果脚本返回非零退出码,这里会抛出异常
// 所以我们不需要额外检查
} catch (Exception e) {
echo "环境排查阶段发生错误: ${e.message}"
echo "⚠️ 环境检测失败,请确保以下组件已安装:"
echo "1. Node.js (https://nodejs.org/)"
echo "2. ss3ops (会自动安装,如失败请手动安装)"
currentBuild.result = 'FAILURE'
error("环境检测失败: ${e.message}")
}
}
}
}
stage('AI 自动决策中心') { stage('AI 自动决策中心') {
steps { steps {
script { script {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment