Near the top of my build console I see a \"Last Built Revision:\" w/ a revision #. How can I access this last built rev # in my build script? I\'m using Gradle, but I don\'t t
The current build-number is provided as the Jenkins-variable BUILD_NUMBER
The complete list of variables is available on your Jenkins server, at: http://[your-jenkins-server]/env-vars.html