tools/python-jenkinsapi.git
11 years agoAdded system tests.
Kirill Spitsin [Mon, 27 May 2013 07:25:55 +0000 (10:25 +0300)]
Added system tests.

They also can be called acceptance or functional tests.  I have always
found testing terminology somewhat entangled :)

These test are running against an instance of real jenkins, which is
launched in the beginning of the test suite and terminated in the end.
jenkins.war file is automatically downloaded in case it isn't already
present in jenkinsapi_tests/systests directory.

There are just few tests for now.  This commit is more like a
demonstration of the concept.

Nose (pip install nose) is needed for running the tests.  After
installing it tests can be run with 'nosetests' command from top-level
project directory.

11 years agoAdded Jenkins.__contains__ method.
Kirill Spitsin [Sun, 26 May 2013 20:14:58 +0000 (23:14 +0300)]
Added Jenkins.__contains__ method.

So now it's possible to use ```'jobname' in jenkins``` syntax instead of
```jenkins.has_job('jobname')```.

11 years agoMerge pull request #84 from x746e/master
Salim Fadhley [Sun, 26 May 2013 16:44:39 +0000 (09:44 -0700)]
Merge pull request #84 from x746e/master

Changed View.add_job() to actually add job to the view, rather than replace all jobs in the view by that job.

11 years agoMerge pull request #77 from vjuranek/api_nested_view
Salim Fadhley [Sun, 26 May 2013 16:42:12 +0000 (09:42 -0700)]
Merge pull request #77 from vjuranek/api_nested_view

Add convenient method for obtaing nested view

11 years agoMerge pull request #83 from Sicness/get_job_description
Salim Fadhley [Sun, 26 May 2013 16:41:39 +0000 (09:41 -0700)]
Merge pull request #83 from Sicness/get_job_description

Added get_description function for jobs

11 years agoChanged View.add_job() to actually add job to the view, rather than replace all jobs...
Kirill Spitsin [Fri, 24 May 2013 14:51:07 +0000 (16:51 +0200)]
Changed View.add_job() to actually add job to the view, rather than replace all jobs in the view by that job.

11 years agoAdded get_description function for jobs
Anton Balashov [Fri, 24 May 2013 14:29:33 +0000 (18:29 +0400)]
Added get_description function for jobs

Obvious function for getting description of job wasn't exist.

11 years agoMerge pull request #79 from baijum/patch-1
Salim Fadhley [Tue, 21 May 2013 10:11:10 +0000 (03:11 -0700)]
Merge pull request #79 from baijum/patch-1

update documentation link

11 years agoupdate documentation link
Baiju Muthukadan [Tue, 21 May 2013 08:35:00 +0000 (14:05 +0530)]
update documentation link

11 years agoMerge pull request #78 from vjuranek/nested_views
Salim Fadhley [Mon, 20 May 2013 21:47:12 +0000 (14:47 -0700)]
Merge pull request #78 from vjuranek/nested_views

Add support for nested views

11 years agoAdd convenient method for obtaing nested view
Vojtech Juranek [Mon, 20 May 2013 21:10:01 +0000 (23:10 +0200)]
Add convenient method for obtaing nested view

11 years agoAdd support for nested views
Vojtech Juranek [Mon, 20 May 2013 20:23:21 +0000 (22:23 +0200)]
Add support for nested views

11 years agoMerge pull request #76 from baijum/master
Salim Fadhley [Mon, 6 May 2013 11:14:13 +0000 (04:14 -0700)]
Merge pull request #76 from baijum/master

Cause can be given to build with or without params

11 years agoCause can be given to build with or without params
Baiju Muthukadan [Mon, 6 May 2013 09:42:04 +0000 (15:12 +0530)]
Cause can be given to build with or without params

11 years agoVersion bump.
salimfadhley [Sat, 4 May 2013 10:12:42 +0000 (11:12 +0100)]
Version bump.

11 years agoMerge pull request #75 from vjuranek/fix_typo
Salim Fadhley [Fri, 3 May 2013 00:43:36 +0000 (17:43 -0700)]
Merge pull request #75 from vjuranek/fix_typo

Fix typo in variable name

11 years agoFix typo in variable name
Vojtech Juranek [Fri, 3 May 2013 00:17:10 +0000 (02:17 +0200)]
Fix typo in variable name

11 years agoMerge pull request #74 from vjuranek/preferred_scheme
Salim Fadhley [Fri, 3 May 2013 00:05:37 +0000 (17:05 -0700)]
Merge pull request #74 from vjuranek/preferred_scheme

Use preferred URL scheme for jobs

11 years agoUse preferred URL scheme for jobs
Vojtech Juranek [Thu, 2 May 2013 23:49:30 +0000 (01:49 +0200)]
Use preferred URL scheme for jobs

Some Jenkins instances are configured to allow reading the data over HTTP scheme, while for manipulating with data (e.g. create or delete
 job) HTTPS scheme is required. Allow user to specify preferred URL scheme (by specifying Jenkins URL) and use this scheme also
manipulations with jobs.

11 years agoMerge pull request #73 from stephenminded/job_parameters
Salim Fadhley [Thu, 2 May 2013 16:16:56 +0000 (09:16 -0700)]
Merge pull request #73 from stephenminded/job_parameters

Add get_params and get_params_list to Job

11 years agoAdd get_params and get_params_list to Job
Steve Lounsbury [Thu, 2 May 2013 15:56:06 +0000 (11:56 -0400)]
Add get_params and get_params_list to Job

11 years agoMerge pull request #72 from vjuranek/krb_import
Salim Fadhley [Thu, 2 May 2013 13:52:10 +0000 (06:52 -0700)]
Merge pull request #72 from vjuranek/krb_import

Add missing import

11 years agoAdd missing import
Vojtech Juranek [Thu, 2 May 2013 13:43:20 +0000 (15:43 +0200)]
Add missing import

11 years agoMerge pull request #71 from elhostis/PATCH_70
Salim Fadhley [Thu, 4 Apr 2013 12:28:33 +0000 (05:28 -0700)]
Merge pull request #71 from elhostis/PATCH_70

[FIX] ISSUE 70 - Jenkins need POST params and not GET params

11 years ago[FIX] ISSUE 70 - Jenkins need POST params and not GET params
elhostis [Thu, 4 Apr 2013 10:02:28 +0000 (12:02 +0200)]
[FIX] ISSUE 70 - Jenkins need POST params and not GET params

11 years agoMerge pull request #69 from victorgp/master
Salim Fadhley [Thu, 21 Mar 2013 19:00:12 +0000 (12:00 -0700)]
Merge pull request #69 from victorgp/master

A new class to represent the Jenkins queue

11 years agoQueue class to represent the Jenkins queue: lists the items and deletes them
Victor García [Thu, 21 Mar 2013 18:43:10 +0000 (19:43 +0100)]
Queue class to represent the Jenkins queue: lists the items and deletes them

11 years agoMerge pull request #68 from victorgp/master
Salim Fadhley [Thu, 21 Mar 2013 18:24:22 +0000 (11:24 -0700)]
Merge pull request #68 from victorgp/master

Adding support to delete an enqueued job and to stop a build

11 years agoadding support for stopping a build if it's running
Victor García [Thu, 21 Mar 2013 13:09:59 +0000 (14:09 +0100)]
adding support for stopping a build if it's running

11 years agoadding support to delete a job from the queue
Victor García [Thu, 21 Mar 2013 12:10:48 +0000 (13:10 +0100)]
adding support to delete a job from the queue

11 years agoMake kerberos optional. Version bump.
salimfadhley [Tue, 5 Mar 2013 09:29:46 +0000 (09:29 +0000)]
Make kerberos optional. Version bump.

11 years agoMerge pull request #67 from victorgp/master
Salim Fadhley [Fri, 22 Feb 2013 16:43:36 +0000 (08:43 -0800)]
Merge pull request #67 from victorgp/master

Some small commits: code doc, mutable objects initialization and removing hardcoded constant

11 years agomutable objects mustn't be initialized in method params
Victor García [Fri, 22 Feb 2013 16:21:05 +0000 (17:21 +0100)]
mutable objects mustn't be initialized in method params

11 years agodoc comment fixed
Victor García [Fri, 22 Feb 2013 15:53:54 +0000 (16:53 +0100)]
doc comment fixed

11 years agoMerge https://github.com/salimfadhley/jenkinsapi
Victor García [Fri, 22 Feb 2013 15:51:12 +0000 (16:51 +0100)]
Merge https://github.com/salimfadhley/jenkinsapi

11 years agoadding STATUS_SUCCESS constant instead of hardcoded string
Victor García [Tue, 12 Feb 2013 11:37:21 +0000 (12:37 +0100)]
adding STATUS_SUCCESS constant instead of hardcoded string

11 years agoMerge pull request #66 from benjaminkemper/master
Salim Fadhley [Wed, 6 Feb 2013 13:50:13 +0000 (05:50 -0800)]
Merge pull request #66 from benjaminkemper/master

Fixed crash on None value in JenkinsBase._data object

11 years agoFixing crash on none value
benjaminkemper [Wed, 6 Feb 2013 12:20:35 +0000 (14:20 +0200)]
Fixing crash on none value

11 years agoAnother version bump.
salimfadhley [Sun, 27 Jan 2013 22:01:42 +0000 (22:01 +0000)]
Another version bump.

11 years agoVersion bump.
salimfadhley [Sun, 27 Jan 2013 21:57:06 +0000 (21:57 +0000)]
Version bump.

11 years agoMerge pull request #64 from lruslan/master
Ruslan Lutsenko [Fri, 18 Jan 2013 11:01:05 +0000 (03:01 -0800)]
Merge pull request #64 from lruslan/master

Add ability to set slave node temporarily offline/online

11 years agoadd comments
Ruslan Lutsenko [Fri, 18 Jan 2013 10:51:36 +0000 (11:51 +0100)]
add comments

11 years agofix node url
Ruslan Lutsenko [Fri, 18 Jan 2013 02:26:38 +0000 (03:26 +0100)]
fix node url

11 years agoset node online/offline
Ruslan Lutsenko [Fri, 18 Jan 2013 02:25:38 +0000 (03:25 +0100)]
set node online/offline

11 years agoMerge pull request #63 from lruslan/master
Salim Fadhley [Thu, 17 Jan 2013 16:51:36 +0000 (08:51 -0800)]
Merge pull request #63 from lruslan/master

Refactored SCM (Source Code Management) functionality

11 years agofix create_node part
Ruslan Lutsenko [Thu, 17 Jan 2013 16:40:57 +0000 (17:40 +0100)]
fix create_node part

11 years agoremove redundat dependencies
Ruslan Lutsenko [Mon, 14 Jan 2013 17:48:43 +0000 (18:48 +0100)]
remove redundat dependencies

11 years agoRefactored SCM (Source Code Management) functionality
Ruslan Lutsenko [Mon, 14 Jan 2013 17:41:19 +0000 (18:41 +0100)]
Refactored SCM (Source Code Management) functionality

11 years agoFix: UnboundLocalError: local variable 'fn_name' referenced before assignment
Ruslan Lutsenko [Mon, 14 Jan 2013 16:34:51 +0000 (17:34 +0100)]
Fix: UnboundLocalError: local variable 'fn_name' referenced before assignment

11 years agoMerge pull request #62 from victorgp/master
Salim Fadhley [Sat, 22 Dec 2012 01:17:30 +0000 (17:17 -0800)]
Merge pull request #62 from victorgp/master

Getting mercurial revision from mercurialNodeName instead

11 years agokerberos dependency added to setup.py
Victor García [Fri, 21 Dec 2012 11:57:14 +0000 (12:57 +0100)]
kerberos dependency added to setup.py

11 years agogetting hg revision from mercurialNodeName because there might be builds with empty...
Victor García [Fri, 21 Dec 2012 11:23:04 +0000 (12:23 +0100)]
getting hg revision from mercurialNodeName because there might be builds with empty changesets list

11 years agoMerge pull request #61 from vjuranek/krb_auth
Salim Fadhley [Tue, 18 Dec 2012 16:28:27 +0000 (08:28 -0800)]
Merge pull request #61 from vjuranek/krb_auth

Added kerberos authentication

11 years agoAdded kerberos authentication
Vojtech Juranek [Mon, 17 Dec 2012 21:16:19 +0000 (22:16 +0100)]
Added kerberos authentication

11 years agoMerge pull request #58 from pabelanger/update_config
Salim Fadhley [Fri, 7 Dec 2012 17:39:17 +0000 (09:39 -0800)]
Merge pull request #58 from pabelanger/update_config

Fix typo when passing config to BeautifulSoup()

11 years agoMerge pull request #59 from pabelanger/create_job
Salim Fadhley [Fri, 7 Dec 2012 17:39:04 +0000 (09:39 -0800)]
Merge pull request #59 from pabelanger/create_job

Add the ability to create a jenkins job

11 years agoMerge pull request #60 from jonpasski/master
Salim Fadhley [Fri, 7 Dec 2012 17:38:28 +0000 (09:38 -0800)]
Merge pull request #60 from jonpasski/master

Added a rename_job function to jenkins

11 years agoAdded rename_job function
Jon Passki [Fri, 7 Dec 2012 15:08:23 +0000 (10:08 -0500)]
Added rename_job function

11 years agoAdd the ability to create a jenkins job
Paul Belanger [Wed, 14 Nov 2012 04:14:16 +0000 (23:14 -0500)]
Add the ability to create a jenkins job

Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
11 years agoFix typo when passing config to BeautifulSoup()
Paul Belanger [Wed, 14 Nov 2012 15:17:48 +0000 (10:17 -0500)]
Fix typo when passing config to BeautifulSoup()

Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
12 years agoMerge pull request #57 from sachu/master
Salim Fadhley [Sun, 11 Nov 2012 19:00:56 +0000 (11:00 -0800)]
Merge pull request #57 from sachu/master

Add the SKIPPED result status to constants

12 years agoAdd the SKIPPED result status to constants
Stephen Chu [Sat, 10 Nov 2012 19:29:03 +0000 (11:29 -0800)]
Add the SKIPPED result status to constants

12 years agoMerge pull request #56 from santtu/53_artifact_download_errors
Salim Fadhley [Tue, 23 Oct 2012 08:53:38 +0000 (01:53 -0700)]
Merge pull request #56 from santtu/53_artifact_download_errors

Fix for https://github.com/salimfadhley/jenkinsapi/issues/53

12 years agoFix for https://github.com/salimfadhley/jenkinsapi/issues/53
Santeri Paavolainen [Tue, 23 Oct 2012 08:19:26 +0000 (11:19 +0300)]
Fix for https://github.com/salimfadhley/jenkinsapi/issues/53

Changed retry_function to return 404s directly, as in that
case we have reached the server, so it is not a network or internal
server error, redirect, proxy failure or anything like that.

Artifact.valid will consider the fingerprint valid if the
fingerprint is not available at server (but it can still exist, so
it cannot be claimed as invalid with certainty).

12 years agoMerge pull request #55 from santtu/54_artifact_auth_download
Salim Fadhley [Tue, 23 Oct 2012 08:23:33 +0000 (01:23 -0700)]
Merge pull request #55 from santtu/54_artifact_auth_download

Fix for https://github.com/salimfadhley/jenkinsapi/issues/54

12 years agoMerge pull request #50 from victorgp/master
Salim Fadhley [Tue, 23 Oct 2012 08:23:20 +0000 (01:23 -0700)]
Merge pull request #50 from victorgp/master

Support for getting and setting SCM branch and source in the job configuration

12 years agoMerge pull request #49 from jollychang/master
Salim Fadhley [Tue, 23 Oct 2012 08:22:57 +0000 (01:22 -0700)]
Merge pull request #49 from jollychang/master

disable/enable a job

12 years agoMerge pull request #46 from cdevienne/master
Salim Fadhley [Tue, 23 Oct 2012 08:22:39 +0000 (01:22 -0700)]
Merge pull request #46 from cdevienne/master

Add support for authentication over https

12 years agoMerge pull request #42 from jd-boyd/master
Salim Fadhley [Tue, 23 Oct 2012 08:21:44 +0000 (01:21 -0700)]
Merge pull request #42 from jd-boyd/master

Please add jenkinsapi.api.get_build

12 years agoFix for https://github.com/salimfadhley/jenkinsapi/issues/54
Santeri Paavolainen [Tue, 23 Oct 2012 08:14:04 +0000 (11:14 +0300)]
Fix for https://github.com/salimfadhley/jenkinsapi/issues/54

Use opener via build object, if available. Fall back to direct
urllib.urlretrieve if opener is not available.

12 years agomerging jollychang @ 070a45e0cd1a5c41d7db49326a2920e44eb73715
Victor García [Thu, 18 Oct 2012 16:57:01 +0000 (18:57 +0200)]
merging jollychang @ 070a45e0cd1a5c41d7db49326a2920e44eb73715

12 years agoMerge pull request #51 from bradley178/master
Salim Fadhley [Tue, 9 Oct 2012 21:17:36 +0000 (14:17 -0700)]
Merge pull request #51 from bradley178/master

Currently running build is not always included in the job's "builds" array

12 years agoJob API may not include in progress build in the 'builds' array. Use URL from 'lastB...
Bradley Harris [Tue, 9 Oct 2012 17:05:10 +0000 (13:05 -0400)]
Job API may not include in progress build in the 'builds' array.  Use URL from 'lastBuild' instead.

12 years agosupport for getting and setting SCM branch/source job configuration
Victor García [Fri, 28 Sep 2012 14:03:09 +0000 (16:03 +0200)]
support for getting and setting SCM branch/source job configuration

12 years agoMerge branch 'feature_enable_disable_job'
jollychang [Wed, 19 Sep 2012 10:18:51 +0000 (18:18 +0800)]
Merge branch 'feature_enable_disable_job'

12 years agoadd job enable/disable
jollychang [Wed, 19 Sep 2012 10:17:47 +0000 (18:17 +0800)]
add job enable/disable

12 years agoMerge pull request #48 from jollychang/master
Salim Fadhley [Tue, 18 Sep 2012 08:18:10 +0000 (01:18 -0700)]
Merge pull request #48 from jollychang/master

get_vcs_url

12 years agofor none
jollychang [Tue, 18 Sep 2012 08:03:21 +0000 (16:03 +0800)]
for none

12 years agoget_vsc_url
jollychang [Tue, 18 Sep 2012 07:38:02 +0000 (15:38 +0800)]
get_vsc_url

12 years agoMerge pull request #47 from jdmears2/master
Salim Fadhley [Sat, 15 Sep 2012 20:25:08 +0000 (13:25 -0700)]
Merge pull request #47 from jdmears2/master

Current version of jenkinsapi is calling wrong method names and doesn't work right if you have artifacts with the same name (e.g. __init__.py) in multiple artifact directories.

12 years agoFix regex search and add support for retrieving artifacts with the same name in diffe...
Josh Davidson [Sat, 15 Sep 2012 19:00:22 +0000 (13:00 -0600)]
Fix regex search and add support for retrieving artifacts with the same name in different directories

12 years agoAdd support for authentication over https
Christophe de Vienne [Mon, 3 Sep 2012 15:39:01 +0000 (17:39 +0200)]
Add support for authentication over https

12 years agoUpdate README.
Bradley Harris [Wed, 22 Aug 2012 20:38:07 +0000 (16:38 -0400)]
Update README.

12 years agoMerge pull request #45 from bradley178/master
Salim Fadhley [Wed, 22 Aug 2012 20:34:43 +0000 (13:34 -0700)]
Merge pull request #45 from bradley178/master

delete_job does not work

12 years agoMakes delete_job work with builtin auth by using the proper parameters to get the job
Bradley Harris [Wed, 22 Aug 2012 20:05:09 +0000 (16:05 -0400)]
Makes delete_job work with builtin auth by using the proper parameters to get the job

12 years agoAdd get_build convenience function.
Joshua Boyd [Mon, 13 Aug 2012 22:45:05 +0000 (19:45 -0300)]
Add get_build convenience function.

A handy shortcut for interactive use, if nothing else.

12 years agoMerge pull request #41 from s19n/master
Salim Fadhley [Thu, 9 Aug 2012 00:12:41 +0000 (17:12 -0700)]
Merge pull request #41 from s19n/master

Two-bytes change! Correct a typo in an error message.

12 years agoTypo.
s19n [Wed, 8 Aug 2012 15:06:16 +0000 (17:06 +0200)]
Typo.

12 years agoMerge pull request #39 from larswirzenius/liw/post-data-dead-code
Salim Fadhley [Sun, 5 Aug 2012 19:47:19 +0000 (12:47 -0700)]
Merge pull request #39 from larswirzenius/liw/post-data-dead-code

Make final return statement be useful

12 years agoMake final return statement be useful
Lars Wirzenius [Thu, 2 Aug 2012 23:04:26 +0000 (00:04 +0100)]
Make final return statement be useful

The final return statement was not useful: it was dead code, and was never
executed, since both the try and except branches of the exception
handling were exiting the method before the final return statement
was reached.

Change the method to follow the structure of the get_data method,
by assigning the return value of urlopen into a variable, which the
final return statement then returns.

12 years agoMerge branch 'master' of https://github.com/salimfadhley/jenkinsapi
salimfadhley [Sat, 7 Jul 2012 22:53:37 +0000 (23:53 +0100)]
Merge branch 'master' of https://github.com/salimfadhley/jenkinsapi

12 years agoRevert "2to3 conversion, untested."
salimfadhley [Sat, 7 Jul 2012 22:52:49 +0000 (23:52 +0100)]
Revert "2to3 conversion, untested."

This reverts commit a564d931eef0087e38551f14cf672c874d66d009.

12 years agoMerge pull request #37 from victorgp/master
Salim Fadhley [Sat, 7 Jul 2012 22:14:06 +0000 (15:14 -0700)]
Merge pull request #37 from victorgp/master

Adding myself to the list of contributors

12 years agoadding myself to the list of contributors
Victor Garcia [Thu, 5 Jul 2012 10:38:01 +0000 (12:38 +0200)]
adding myself to the list of contributors

12 years ago2to3 conversion, untested.
salimfadhley [Wed, 4 Jul 2012 23:08:57 +0000 (00:08 +0100)]
2to3 conversion, untested.

12 years agoFix python grammar for 3 compatibility
salimfadhley [Wed, 4 Jul 2012 23:06:33 +0000 (00:06 +0100)]
Fix python grammar for 3 compatibility

12 years agoMerge pull request #36 from victorgp/master
Salim Fadhley [Wed, 4 Jul 2012 22:37:30 +0000 (15:37 -0700)]
Merge pull request #36 from victorgp/master

A build should have resultset even though having a status failure

12 years agoAdd license doc
salimfadhley [Wed, 4 Jul 2012 22:35:44 +0000 (23:35 +0100)]
Add license doc

12 years agoAdd MIT license.
salimfadhley [Wed, 4 Jul 2012 22:35:28 +0000 (23:35 +0100)]
Add MIT license.

12 years agoa build should have resultset even though having a status failure
Victor Garcia [Wed, 4 Jul 2012 17:26:56 +0000 (19:26 +0200)]
a build should have resultset even though having a status failure