我最近开始在Windows 10中使用Jenkins。我有一个自由样式的作业,可以从SCM进行同步,构建C ++解决方案,然后运行批处理脚本上载到Steam。当我意识到阅读文档更加强大时,我正在尝试将其转换为管道。我的问题是,在运行.bat文件的步骤中,它永远卡住了,这是步骤:
...
Stage('batch script'){
steps{
bat 'start C:/Users/User/.jenkins/workspace/Project/Steam Build Scripts/scripts/build_dev.bat'
}
}
...
这是简单的.bat文件:
"C:\Users\User\.jenkins\workspace\Project\Steam Build Scripts\builder\steamcmd.exe" +login "someUser" "somePassword" +run_app_build "C:\Users\User\.jenkins\workspace\Project\Steam Build Scripts\scripts\app-build-813780-dev.vdf" +quit
答案 0 :(得分:0)
由于路径中包含空格,我不得不找出方法来解决相同的问题:
bat ('call "C:/Users/User/.jenkins/workspace/Project/Steam Build Scripts/scripts/build_dev.bat"');