Adapted ruslans changes to allow revision->buildnr caching
authorRamon van Alteren <ramon@vanalteren.nl>
Wed, 4 Jan 2012 17:06:35 +0000 (18:06 +0100)
committerRamon van Alteren <ramon@vanalteren.nl>
Wed, 4 Jan 2012 17:06:35 +0000 (18:06 +0100)
commiteabf11b6d9d7d55f6edeb80132417e8960cbe65e
treef330f723654c756dcfdc3a219e562df6a161e1b8
parent1691071a29e7ffc0be5f29bceacfd3eef6e97594
Adapted ruslans changes to allow revision->buildnr caching

It's pretty dumb to rebuild this map every time it is requested, jobs now hold a cache which gets refreshed
only if the user explicitly asks for it.

In addition I added support for multiple builds on a single revision which is a long standing problem with the old
jenkins api. If a user manually rebuilds the same revision we end up with multiple builds with the same rev.
This confuses the deployscript, and deploys will fail due to that.

This change opens up the possibility to deal with this more gracefully
pyjenkinsci/artifact.py
pyjenkinsci/job.py
pyjenkinsci/utils/md5hash.py [deleted file]
pyjenkinsci/utils/urlopener.py