Created
October 10, 2014 18:41
-
-
Save cheinema/db643f35dfd33023cf66 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// To be run with the Jenkins EnvInject plugin in the section | |
// "Prepare an environment for the run/Evaluated Groovy script" of the job configuration | |
def url = JOB_URL + 'lastStableBuild/api/json?tree=changeSet[revisions[revision]]' | |
def json = new groovy.json.JsonSlurper().parseText(url.toURL().text) | |
return ['LAST_SVN_REVISION': json.changeSet.revisions[0].revision] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment