Skip to content

Instantly share code, notes, and snippets.

@larrymyers
larrymyers / gist:1219952
Created September 15, 2011 17:51
Create a version.txt file for builds via Jenkins / Hudson and Git
echo "JOB: $JOB_NAME" > version.txt
echo "BUILD NUMBER: $BUILD_NUMBER" >> version.txt
echo "GIT REVISION:" >> version.txt
git log -n 1 >> version.txt