tools/python-jenkinsapi.git
12 years agoMerge pull request #26 from jollychang/master
Salim Fadhley [Fri, 11 May 2012 09:58:51 +0000 (02:58 -0700)]
Merge pull request #26 from jollychang/master

copy job and delete job

12 years agocopy job return job obj
William Zhang [Fri, 11 May 2012 08:10:10 +0000 (16:10 +0800)]
copy job return job obj

12 years agocopy/delete job
William Zhang [Fri, 11 May 2012 06:35:10 +0000 (14:35 +0800)]
copy/delete job

12 years agoadd raise
William Zhang [Fri, 11 May 2012 06:34:31 +0000 (14:34 +0800)]
add raise

12 years agoadd try expect
William Zhang [Fri, 11 May 2012 03:46:52 +0000 (11:46 +0800)]
add try expect

12 years agoMerge pull request #25 from jollychang/master
Salim Fadhley [Wed, 9 May 2012 08:19:35 +0000 (01:19 -0700)]
Merge pull request #25 from jollychang/master

for update job config

12 years agochange a var
William Zhang [Wed, 9 May 2012 02:36:41 +0000 (10:36 +0800)]
change a var

12 years agoadd update_config and post_data
William Zhang [Wed, 9 May 2012 02:28:56 +0000 (10:28 +0800)]
add update_config and post_data

12 years agoMerge pull request #24 from EwoutVDC/master
Salim Fadhley [Tue, 8 May 2012 08:32:18 +0000 (01:32 -0700)]
Merge pull request #24 from EwoutVDC/master

import error in build.block_until_complete

12 years agobuild.invoke with block=True: don't assert build succes, but build completion
Bioske [Mon, 7 May 2012 11:52:57 +0000 (14:52 +0300)]
build.invoke with block=True: don't assert build succes, but build completion

12 years agofix import issue in build.block_until_complete()
Bioske [Mon, 7 May 2012 11:25:12 +0000 (14:25 +0300)]
fix import issue in build.block_until_complete()

12 years agoMerge pull request #22 from hoot80/master
Salim Fadhley [Mon, 23 Apr 2012 23:24:36 +0000 (16:24 -0700)]
Merge pull request #22 from hoot80/master

small issue with time import

12 years agosmall issue with time import
Matt Hootman [Wed, 18 Apr 2012 17:30:52 +0000 (12:30 -0500)]
small issue with time import

12 years agoMerge pull request #14 from lruslan/master
Salim Fadhley [Fri, 9 Mar 2012 15:21:12 +0000 (07:21 -0800)]
Merge pull request #14 from lruslan/master

FIX: TypeError: 'NoneType' object is unsubscriptable in job._buildid_for_type

12 years agoFIX: TypeError: 'NoneType' object is unsubscriptable when _data[buildtype] == None
Ruslan Lutsenko [Thu, 8 Mar 2012 09:44:57 +0000 (10:44 +0100)]
FIX: TypeError: 'NoneType' object is unsubscriptable when _data[buildtype] == None

12 years agoCorrect IOError on install.
Salim Fadhley [Tue, 6 Mar 2012 23:57:50 +0000 (23:57 +0000)]
Correct IOError on install.

12 years agoVersion bump
Salim Fadhley [Mon, 5 Mar 2012 22:04:04 +0000 (22:04 +0000)]
Version bump

12 years agoMerge pull request #10 from cleberjsantos/master
Salim Fadhley [Sun, 4 Mar 2012 08:49:54 +0000 (00:49 -0800)]
Merge pull request #10 from cleberjsantos/master

Fix reStructuredText syntax

12 years agoFix pep8 and open file description
Cleber J Santos [Sat, 3 Mar 2012 13:48:38 +0000 (10:48 -0300)]
Fix pep8 and open file description

12 years agoFix Credits and Project Authors
Cleber J Santos [Sat, 3 Mar 2012 13:34:54 +0000 (10:34 -0300)]
Fix Credits and Project Authors

12 years agoAdded Credits
Cleber J Santos [Sat, 3 Mar 2012 13:31:29 +0000 (10:31 -0300)]
Added Credits

12 years agoFix reStructuredText syntax
Cleber J Santos [Sat, 3 Mar 2012 13:29:12 +0000 (10:29 -0300)]
Fix reStructuredText syntax

12 years agoFix reStructuredText syntax
Cleber J Santos [Sat, 3 Mar 2012 13:27:52 +0000 (10:27 -0300)]
Fix reStructuredText syntax

12 years agoMerge pull request #9 from cleberjsantos/master
Salim Fadhley [Fri, 2 Mar 2012 19:00:06 +0000 (11:00 -0800)]
Merge pull request #9 from cleberjsantos/master

command_line package

12 years agoAdded a required dependency
Cleber J Santos [Fri, 2 Mar 2012 18:05:26 +0000 (15:05 -0300)]
Added a required dependency

12 years agoMerge branch 'master' of https://salimfadhley@github.com/salimfadhley/jenkinsapi.git
Salim Fadhley [Mon, 27 Feb 2012 21:01:49 +0000 (21:01 +0000)]
Merge branch 'master' of https://salimfadhley@github.com/salimfadhley/jenkinsapi.git

12 years agoVersion bump.
Salim Fadhley [Mon, 27 Feb 2012 20:33:55 +0000 (20:33 +0000)]
Version bump.

12 years agoLars Nordin's correction intended to cope with node-names which contain
Salim Fadhley [Mon, 27 Feb 2012 20:33:37 +0000 (20:33 +0000)]
Lars Nordin's correction intended to cope with node-names which contain
characters requiring HTTP escaping. Thanks for the fix Lars!

12 years agoMerge pull request #7 from kavehv/master
Salim Fadhley [Sat, 25 Feb 2012 23:57:09 +0000 (15:57 -0800)]
Merge pull request #7 from kavehv/master

Fix get_revision for multiple repo

12 years agoUpdate jenkinsapi/build.py
kavehv [Sat, 25 Feb 2012 00:02:21 +0000 (16:02 -0800)]
Update jenkinsapi/build.py

12 years agoVersion bump. Ramon has kindly fixed my sdist import error.
Salim Fadhley [Wed, 15 Feb 2012 00:26:15 +0000 (00:26 +0000)]
Version bump. Ramon has kindly fixed my sdist import error.

12 years agoMerge pull request #5 from ramonvanalteren/master
Salim Fadhley [Wed, 15 Feb 2012 00:25:12 +0000 (16:25 -0800)]
Merge pull request #5 from ramonvanalteren/master

as requested

12 years agoMerge remote-tracking branch 'salim/master'
Ramon van Alteren [Tue, 14 Feb 2012 23:53:51 +0000 (00:53 +0100)]
Merge remote-tracking branch 'salim/master'

* salim/master:
  Add build dir to .gitignore
  Yet more corrections required for the 0.1.1 release, including some typos in the doc-building ANT script and the main setup script. Also added an ANT script which automates much of the release process.
  Some tweaks required for 1.0.1 release.

12 years agoFixed setup.py
Ramon van Alteren [Tue, 14 Feb 2012 23:10:06 +0000 (00:10 +0100)]
Fixed setup.py

The amount of data in setup_config doesn't really need an extra file and the hassle to get that in setup.py
Copied vars back to the setup.py file and deleted setup_config.py

12 years agoAdded timestamp method to build
Ramon van Alteren [Fri, 10 Feb 2012 09:00:24 +0000 (10:00 +0100)]
Added timestamp method to build

mcascallares requested a method to retrieve the timestamp on a build.
Added closing issue #4

12 years agoAdd build dir to .gitignore
Salim Fadhley [Thu, 9 Feb 2012 00:06:19 +0000 (00:06 +0000)]
Add build dir to .gitignore

12 years agoYet more corrections required for the 0.1.1 release, including some
Salim Fadhley [Thu, 9 Feb 2012 00:00:29 +0000 (00:00 +0000)]
Yet more corrections required for the 0.1.1 release, including some
typos in the doc-building ANT script and the main setup script. Also
added an ANT script which automates much of the release process.

12 years agoSome tweaks required for 1.0.1 release.
Salim Fadhley [Wed, 8 Feb 2012 23:52:23 +0000 (23:52 +0000)]
Some tweaks required for 1.0.1 release.

12 years agoMerge pull request #3 from ramonvanalteren/master
Salim Fadhley [Wed, 8 Feb 2012 14:20:49 +0000 (06:20 -0800)]
Merge pull request #3 from ramonvanalteren/master

Please merge, point release 0.1.1 ?

12 years agomore whitespace fixup
Ramon van Alteren [Wed, 8 Feb 2012 14:19:05 +0000 (15:19 +0100)]
more whitespace fixup

12 years agofix validate_for_build parameters
Ruslan Lutsenko [Tue, 7 Feb 2012 14:21:29 +0000 (15:21 +0100)]
fix validate_for_build parameters

12 years agoAdded the ability to get at the config.xml from a job
Ramon van Alteren [Wed, 8 Feb 2012 13:43:23 +0000 (14:43 +0100)]
Added the ability to get at the config.xml from a job

Jobs expose their configuration through an xml file which can be retrieved through the api.
Right now this method returns the raw xml as \n terminated strings.

This may change in the future to support more useful xml based structures

12 years agoInstall fails without utils package which is required by JenkinsBase
Ramon van Alteren [Wed, 8 Feb 2012 13:23:37 +0000 (14:23 +0100)]
Install fails without utils package which is required by JenkinsBase

We only install jenkinsapi package and nothing below it as it is specified now in the setup.py
This breaks the library because we need the jenkinsapi.utils package in JenkinsBase class

12 years agoMoved hiturl to base class and implemented reload
Ramon van Alteren [Wed, 8 Feb 2012 13:19:13 +0000 (14:19 +0100)]
Moved hiturl to base class and implemented reload

hiturl is generic, moved it to baseclass so we can use it everywhere.
implemented reload on Jenkins object, which will reload the config from disk

12 years agoCleaned up whitespace in examples
Ramon van Alteren [Wed, 8 Feb 2012 10:12:43 +0000 (11:12 +0100)]
Cleaned up whitespace in examples

12 years agoRemoving eclipse settings
Ramon van Alteren [Wed, 8 Feb 2012 10:02:12 +0000 (11:02 +0100)]
Removing eclipse settings

12 years agoAdding .settings to gitignore
Ramon van Alteren [Tue, 7 Feb 2012 16:03:11 +0000 (17:03 +0100)]
Adding .settings to gitignore

Salim keeps spewing pydev/eclipse configs into git

12 years agoFixing parameterized job invocation
Ramon van Alteren [Tue, 7 Feb 2012 08:55:25 +0000 (09:55 +0100)]
Fixing parameterized job invocation

It will now allow parameterized jobs to be called, with or without security token.
Thanks for RBURHUM for reporting the issue.

12 years agoTrigger parameterized builds with token as well
Ramon van Alteren [Mon, 6 Feb 2012 08:29:04 +0000 (09:29 +0100)]
Trigger parameterized builds with token as well

Per request of RBURHUM.
Although the api explaination recommends to use authentification / security to trigger builds and not
use the (deprecated) trigger builds remotely with a security token, apparently people are still using it.

12 years agoFixing parameterized job invocation
Ramon van Alteren [Sun, 5 Feb 2012 11:50:19 +0000 (12:50 +0100)]
Fixing parameterized job invocation

12 years agoMerge pull request #2 from lruslan/master
Ruslan Lutsenko [Tue, 7 Feb 2012 14:39:25 +0000 (06:39 -0800)]
Merge pull request #2 from lruslan/master

Small fixes for artifact methods:
1) Fixed parameters for validate_for_build in artifact._verify_download
2) In artifact.savetodir return filepath

12 years agofix validate_for_build parameters
Ruslan Lutsenko [Tue, 7 Feb 2012 14:21:29 +0000 (15:21 +0100)]
fix validate_for_build parameters

12 years agoreturn filepath
Ruslan Lutsenko [Thu, 2 Feb 2012 14:34:08 +0000 (15:34 +0100)]
return filepath

12 years agoMore tweaks to the readme
Salim Fadhley [Wed, 11 Jan 2012 15:41:40 +0000 (15:41 +0000)]
More tweaks to the readme

12 years agoAdd some simple searching examples.
Salim Fadhley [Wed, 11 Jan 2012 15:30:36 +0000 (15:30 +0000)]
Add some simple searching examples.

12 years agoRemove repeating text from readme
Salim Fadhley [Wed, 11 Jan 2012 14:29:09 +0000 (14:29 +0000)]
Remove repeating text from readme

12 years agoDoc building to zips now working.
Salim Fadhley [Wed, 11 Jan 2012 14:01:27 +0000 (14:01 +0000)]
Doc building to zips now working.

12 years agoAdded some doctext.
Salim Fadhley [Mon, 9 Jan 2012 18:41:09 +0000 (18:41 +0000)]
Added some doctext.

12 years agoAdded an incomplete example (was from my old version so needs to be
Salim Fadhley [Mon, 9 Jan 2012 18:40:38 +0000 (18:40 +0000)]
Added an incomplete example (was from my old version so needs to be
updated).

12 years agoAdded some more docs.
Salim Fadhley [Mon, 9 Jan 2012 18:40:11 +0000 (18:40 +0000)]
Added some more docs.

12 years agoMore doc tweaks
Salim Fadhley [Mon, 9 Jan 2012 18:07:55 +0000 (18:07 +0000)]
More doc tweaks

12 years agoCorrect some indentation errors
Salim Fadhley [Mon, 9 Jan 2012 18:05:09 +0000 (18:05 +0000)]
Correct some indentation errors

12 years agoAdd some items to the main TOC
Salim Fadhley [Mon, 9 Jan 2012 18:00:07 +0000 (18:00 +0000)]
Add some items to the main TOC

12 years agoMore doc related tweaks
Salim Fadhley [Mon, 9 Jan 2012 17:42:05 +0000 (17:42 +0000)]
More doc related tweaks

12 years agoMore tweaks, finally getting the hang of Sphinx
Salim Fadhley [Mon, 9 Jan 2012 17:20:33 +0000 (17:20 +0000)]
More tweaks, finally getting the hang of Sphinx

12 years agoSwitching back to Sphinx
Salim Fadhley [Mon, 9 Jan 2012 17:01:39 +0000 (17:01 +0000)]
Switching back to Sphinx

12 years agoInterim commit - a dummy file in the examples folder to act as a
Salim Fadhley [Mon, 9 Jan 2012 15:59:43 +0000 (15:59 +0000)]
Interim commit - a dummy file in the examples folder to act as a
placeholder. Doc generation tweaks.

12 years agoSmall tweaks to docs.
Salim Fadhley [Mon, 9 Jan 2012 15:38:33 +0000 (15:38 +0000)]
Small tweaks to docs.

12 years agoFixed up some zipping.
Salim Fadhley [Mon, 9 Jan 2012 15:35:55 +0000 (15:35 +0000)]
Fixed up some zipping.

12 years agoInterim commit - adding support for zipping docs.
Salim Fadhley [Mon, 9 Jan 2012 15:15:04 +0000 (15:15 +0000)]
Interim commit - adding support for zipping docs.

12 years agoInterim commit
Salim Fadhley [Mon, 9 Jan 2012 14:48:46 +0000 (14:48 +0000)]
Interim commit

12 years agoInterim commit of epydoc.
Salim Fadhley [Mon, 9 Jan 2012 14:42:20 +0000 (14:42 +0000)]
Interim commit of epydoc.

12 years agoDelete no longer needed files.
Salim Fadhley [Mon, 9 Jan 2012 13:39:36 +0000 (13:39 +0000)]
Delete no longer needed files.

12 years agoMore tweaks.
Salim Fadhley [Sun, 8 Jan 2012 13:36:00 +0000 (13:36 +0000)]
More tweaks.

12 years agoSome doc work
Salim Fadhley [Sun, 8 Jan 2012 13:26:46 +0000 (13:26 +0000)]
Some doc work

12 years agoTidy up of readme
Salim Fadhley [Thu, 5 Jan 2012 22:54:16 +0000 (22:54 +0000)]
Tidy up of readme

12 years agoEnsure build & dist files are ignored.
Salim Fadhley [Thu, 5 Jan 2012 22:43:27 +0000 (22:43 +0000)]
Ensure build & dist files are ignored.

12 years agoTidy ups of the setup & readme files.
Salim Fadhley [Thu, 5 Jan 2012 22:42:57 +0000 (22:42 +0000)]
Tidy ups of the setup & readme files.

12 years agoSalim is back in the setup.py by request
Ramon van Alteren [Thu, 5 Jan 2012 17:51:46 +0000 (18:51 +0100)]
Salim is back in the setup.py by request

12 years agoFixup setup.py
Ramon van Alteren [Thu, 5 Jan 2012 15:47:42 +0000 (16:47 +0100)]
Fixup setup.py

12 years agoRenamed to jenkinsapi
Ramon van Alteren [Thu, 5 Jan 2012 14:42:19 +0000 (15:42 +0100)]
Renamed to jenkinsapi

Updated everything to new name
Added readme with details and info of parent project
Added TODO file
Fixed all outstanding warnings

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