有没有办法在 azure devops 中按计划(每周一次/两次)执行 exe。无法找到正确的任务来实现这一目标。
最佳答案
Is there a way to execute an exe on a scheduled basis (once/twice everyday of the week) in azure devops
答案是肯定的。
我们可以添加 Command Line从命令提示符运行程序的构建或发布管道中的任务,指定
.exe
来自您的存储库位置的控制台应用程序,例如:"$(Build.SourcesDirectory)\Tools\ConsoleApp.exe"
:那么 ,我们移至 触发 选项卡,有一个选项 预定 ,我们可以设置预定的基础:
如果你想安排任务/构建 两次一周中的每一天,您都可以再添加一个时间表。
更新:
How to add app configs specific to each envs here in this step? Any idea?
您可以通过多阶段的发布管道来实现它:
Define your multi-stage continuous deployment (CD) pipeline
每个环境的每个阶段。
Additionally this requires a build every time correct? Is there a way to eliminate that?
是的,这需要每次构建,否则,将没有触发器来运行
.exe
.希望这可以帮助。
关于powershell - 在 Azure Devops 的计划中执行 exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60625045/