Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何将内部版本号放入 Hudson 的 .txt 文件中
在执行shell echo $BUILD_NUMBER >> bldnum.txt
这是正确的方法吗?
如果您使用的是某个版本的 Linux。在 Windows 上,您需要一个 Execute Batch 任务
echo %BUILD_NUMBER% > bldnum.txt
(我假设你不想追加......无论如何构建都应该清除对先前构建的依赖)