开发者

Hudson Environment

开发者 https://www.devze.com 2023-02-08 23:02 出处:网络
I would like to know how I can get the build number into开发者_运维百科 a .txt file in Hudson Under execute shell

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

精彩评论

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

关注公众号