Reputation:
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?
Upvotes: 0
Views: 663
Reputation: 41287
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)
Upvotes: 2