-
New Feature
-
Resolution: Unresolved
-
Major
-
None
-
Platform: All, OS: All
Provide a permanent download link for the svn revision of a build.
This allows you to do something like:
- svn update -r `wget http://hudson/job/foo/lastSuccessfullBuild/revision`
and get a revision that is guaranteed to work.
Implemented in 1.115 as a combination of two generic features.
1. I added svn revision info to the XML API of the build object. So now
http://hudson/job/foo/lastSuccessfullBuild/api/xml will include the information
you need.
2. The XML API takes optional 'xpath' query parameter to allow you to specify
which part of the information you'd like to retrieve. So you can request URL
like
http://localhost:8080/job/svn-test/lastSuccessfulBuild/api/xml?xpath=/*/changeSet/revision/revision/text()
to just fetch the revision number (say "1234"), then feed that into wget.