tools/python-jenkinsapi.git
12 years agoAdded support for user/pass auth to invoker
Ramon van Alteren [Thu, 5 Jan 2012 12:56:30 +0000 (13:56 +0100)]
Added support for user/pass auth to invoker

12 years agoCleanup of unused code
Ramon van Alteren [Thu, 5 Jan 2012 12:43:27 +0000 (13:43 +0100)]
Cleanup of unused code

We don't use the test stuff, deleting
I might replace this later on with a more generic testing framework

12 years agoFixing stupid bugs
Ramon van Alteren [Thu, 5 Jan 2012 11:59:52 +0000 (12:59 +0100)]
Fixing stupid bugs

jobname is a var :(
and we need to pass a hexstring as md5hash not a binary

12 years agoFixing stupid bugs
Ramon van Alteren [Thu, 5 Jan 2012 11:57:37 +0000 (12:57 +0100)]
Fixing stupid bugs

jobname is a var :(
and we need to pass a hexstring as md5hash not a binary

12 years agoFirst stab at refactoring artifact
Ramon van Alteren [Thu, 5 Jan 2012 11:44:35 +0000 (12:44 +0100)]
First stab at refactoring artifact

Removed weird streaming code, replaced it with a call to urllib.urlretrieve which does chunking all by itself
Made local md5 hash generation more sane
Use fingerprint object directly for validation, without going through the jenkins api ref

12 years agoFew bugs left due to old refs to hudson
Ramon van Alteren [Thu, 5 Jan 2012 09:05:52 +0000 (10:05 +0100)]
Few bugs left due to old refs to hudson

12 years agoFixed dict creation by using a defaultdict
Ramon van Alteren [Wed, 4 Jan 2012 17:50:48 +0000 (18:50 +0100)]
Fixed dict creation by using a defaultdict

12 years agoAdded it to the wrong class :(
Ramon van Alteren [Wed, 4 Jan 2012 17:31:07 +0000 (18:31 +0100)]
Added it to the wrong class :(

12 years agoMissing revmap attribute added
Ramon van Alteren [Wed, 4 Jan 2012 17:28:35 +0000 (18:28 +0100)]
Missing revmap attribute added

12 years agoFixing json import, we have simplejson installed in python-2.5
Ramon van Alteren [Wed, 4 Jan 2012 17:19:14 +0000 (18:19 +0100)]
Fixing json import, we have simplejson installed in python-2.5

12 years agoFixed indentation error
Ramon van Alteren [Wed, 4 Jan 2012 17:13:18 +0000 (18:13 +0100)]
Fixed indentation error

12 years agoAdapted ruslans changes to allow revision->buildnr caching
Ramon van Alteren [Wed, 4 Jan 2012 17:06:35 +0000 (18:06 +0100)]
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

12 years agoMerge remote-tracking branch 'ruslan/master' into svn-revs
Ramon van Alteren [Wed, 4 Jan 2012 14:09:44 +0000 (15:09 +0100)]
Merge remote-tracking branch 'ruslan/master' into svn-revs

* ruslan/master:
  revision methods added to job and build classes
  Test

12 years agoCleanup
Ramon van Alteren [Wed, 4 Jan 2012 14:08:03 +0000 (15:08 +0100)]
Cleanup

12 years agoAdded authentification and node classes
Ramon van Alteren [Tue, 3 Jan 2012 16:47:22 +0000 (17:47 +0100)]
Added authentification and node classes

In order to add nodes, I need to be able to authenticate myself against jenkins
Added additional code to the opener to allow authentication using a custom AuthHandler
Jenkins uses BasicAuth without a challenge, so I had to implement a small subclass which I pulled from stackoverflow.

Node class + methods on Jenkins class added
Ability to add and remove nodes, check for presence and basic data

12 years agorevision methods added to job and build classes
Ruslan Lutsenko [Tue, 3 Jan 2012 15:45:01 +0000 (16:45 +0100)]
revision methods added to job and build classes

12 years agoMerge branch 'master' of github.com:ramonvanalteren/pyjenkinsci
Ramon van Alteren [Tue, 3 Jan 2012 12:33:32 +0000 (13:33 +0100)]
Merge branch 'master' of github.com:ramonvanalteren/pyjenkinsci

* 'master' of github.com:ramonvanalteren/pyjenkinsci:
  Added *.pyc and egg-info to ignore list

12 years agoFirst stab at node class
Ramon van Alteren [Tue, 3 Jan 2012 12:32:34 +0000 (13:32 +0100)]
First stab at node class

Addded method to get at node info from jenkins object
Created a node class to hold node data

Node class still has all the original code from the ubuntu project commented out, aka this is a WIP

12 years agoTest
Ruslan Lutsenko [Tue, 3 Jan 2012 12:16:15 +0000 (13:16 +0100)]
Test

12 years agoAdded *.pyc and egg-info to ignore list
Ramon van Alteren [Mon, 2 Jan 2012 16:46:00 +0000 (17:46 +0100)]
Added *.pyc and egg-info to ignore list

12 years agoChanged imports and classnames
Ramon van Alteren [Mon, 2 Jan 2012 16:30:56 +0000 (17:30 +0100)]
Changed imports and classnames

All imports are now non-relative using the packagename
All classes are now named differently from their modules by capitalizing them

12 years agoFixing up setup.py refs
Ramon van Alteren [Mon, 2 Jan 2012 14:00:51 +0000 (15:00 +0100)]
Fixing up setup.py refs

12 years agoSimplyfied dir setup
Ramon van Alteren [Mon, 2 Jan 2012 13:53:37 +0000 (14:53 +0100)]
Simplyfied dir setup

Removed jenkinsci_egg and src dirs
Removed tests, highly env dependant and not very usefull

12 years agoFirst commit
Ramon van Alteren [Mon, 2 Jan 2012 13:44:19 +0000 (14:44 +0100)]
First commit

12 years agoPEP-8 compliance run
Ramon van Alteren [Mon, 2 Jan 2012 13:38:54 +0000 (14:38 +0100)]
PEP-8 compliance run

Moved everything to PEP-8 compliance, hopefully :(
Cleaned up references to hudson
Cleanup of misc bugs and stuff