|
|
|
|
@ -265,7 +265,7 @@ pipeline {
|
|
|
|
|
|
|
|
|
|
REM 检查 WiX Toolset 是否安装
|
|
|
|
|
set WIX_FOUND=0
|
|
|
|
|
where candle.exe >nul 2>&1 && set WIX_FOUND=1
|
|
|
|
|
if exist "%WIX_HOME%\\bin\\candle.exe" set WIX_FOUND=1
|
|
|
|
|
|
|
|
|
|
if !WIX_FOUND! EQU 0 (
|
|
|
|
|
echo ⚠️ 警告: WiX Toolset 未找到,跳过 EXE 打包
|
|
|
|
|
@ -527,9 +527,9 @@ pipeline {
|
|
|
|
|
expression { currentBuild.result == null || currentBuild.result == 'SUCCESS' || currentBuild.result == 'UNSTABLE' }
|
|
|
|
|
}
|
|
|
|
|
parallel {
|
|
|
|
|
stage('9.1 推送源代码到 feature-ldl') {
|
|
|
|
|
stage('9.1 推送源代码到 main') {
|
|
|
|
|
steps {
|
|
|
|
|
echo '========== 推送源代码到头歌 feature-ldl 分支 =========='
|
|
|
|
|
echo '========== 推送源代码到头歌 main 分支 =========='
|
|
|
|
|
script {
|
|
|
|
|
try {
|
|
|
|
|
withCredentials([usernamePassword(
|
|
|
|
|
@ -548,12 +548,12 @@ pipeline {
|
|
|
|
|
git config user.name "Jenkins CI"
|
|
|
|
|
git config user.email "ldl@chzu.edu.cn"
|
|
|
|
|
git remote add educoder https://bdgit.educoder.net/pu6zrsfoy/CHZU_CS231_SEB_lab.git || git remote set-url educoder https://bdgit.educoder.net/pu6zrsfoy/CHZU_CS231_SEB_lab.git
|
|
|
|
|
git push https://%USER_ENC%:%PASS_ENC%@bdgit.educoder.net/pu6zrsfoy/CHZU_CS231_SEB_lab.git HEAD:refs/heads/feature-ldl --force
|
|
|
|
|
git push https://%USER_ENC%:%PASS_ENC%@bdgit.educoder.net/pu6zrsfoy/CHZU_CS231_SEB_lab.git HEAD:refs/heads/main --force
|
|
|
|
|
'''
|
|
|
|
|
}
|
|
|
|
|
echo '✓ 源代码推送到 feature-ldl 成功'
|
|
|
|
|
echo '✓ 源代码推送到 main 成功'
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
echo '⚠ 推送代码到 feature-ldl 失败'
|
|
|
|
|
echo '⚠ 推送代码到 main 失败'
|
|
|
|
|
echo "错误信息: ${e.message}"
|
|
|
|
|
currentBuild.result = 'UNSTABLE'
|
|
|
|
|
}
|
|
|
|
|
|