Created
September 15, 2011 17:51
-
-
Save larrymyers/1219952 to your computer and use it in GitHub Desktop.
Create a version.txt file for builds via Jenkins / Hudson and Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "JOB: $JOB_NAME" > version.txt | |
echo "BUILD NUMBER: $BUILD_NUMBER" >> version.txt | |
echo "GIT REVISION:" >> version.txt | |
git log -n 1 >> version.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment