开发者

Hudson Environment

I would like to know how I can get the build number into开发者_运维百科 a .txt file in Hudson

Under execute shell echo $BUILD_NUMBER >> bldnum.txt

Is this right way?


If you're on some version of Linux. On Windows, you'd want an Execute Batch task with

echo %BUILD_NUMBER% > bldnum.txt

(I'm assuming you don't want to append... Builds should be clear of dependencies on previous builds anyways)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜