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)
精彩评论