gpt4 book ai didi

batch-file - 从 TeamCity 运行 .bat 文件

转载 作者:行者123 更新时间:2023-12-03 07:00:33 25 4
gpt4 key购买 nike

如何从 TeamCity 自动执行批处理文件。我可以创建 TC 构建配置并让 TC 代理构建该配置并自动运行指定的批处理文件吗?

编辑:批处理脚本。

echo off

echo Do you want to deploy xxxx to DerServ(yn):
set /p input=

if "%input%" == "y" goto :1
if NOT "%input%" == "y" goto :2

:1
SET MSBUILD="C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"
%MSBUILD% xxxxx.defaultTeamCity.msbuild /target:projBuild

goto end
:2
ECHO Exiting...
goto end
:end

pause

错误消息:

[12:25:12]: 'projBuild' is not recognized as an internal or external command,[12:25:12]: operable program or batch file.[12:25:13]: Build finished

最佳答案

是的,您可以使用Command Line runner来做到这一点.

Build Step

关于batch-file - 从 TeamCity 运行 .bat 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7490213/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com