更新工具

main
刘涛 2025-04-30 18:50:35 +08:00
parent aa2e992f73
commit 13a0e2d21f
2 changed files with 14 additions and 2 deletions

View File

@ -26,6 +26,18 @@ pipeline {
}
}
stage('拉子工程') {
steps {
// dll_tools
// revert_and_pull_git.sh
//
sh "chmod +x $WORKSPACE/Tool/dll_tools/*"
sh "cd $WORKSPACE/Tool/dll_tools && ./revert_and_pull_git.sh"
}
}
stage('设置环境') {
steps {
//

View File

@ -1,10 +1,10 @@
#!/bin/bash
# 自动还原git并拉取最新代码
# 当前目录在C:/Work/Projects/NLDClient/Tool/dll_tools
# 需要操作目录在C:/Work/Projects/NLDClient
# 需要操作目录在C:\Work\Projects\NLDClient\ProjectNLD\Assets\Code\Scripts\GamePlay
# cd 到需要操作目录
cd ../..
cd ../../ProjectNLD/Assets/Code/Scripts/GamePlay
# 检查是否进入成功
if [ $? -ne 0 ]; then
echo "Failed to change directory to NLDClient"