tools/python-jenkinsapi.git
10 years agoAdded re-try when removing job
Aleksey Maksimov [Sat, 12 Apr 2014 16:48:05 +0000 (00:48 +0800)]
Added re-try when removing job

Becuase Jenkins sometimes breaks for
unknown reason while removing jobs

10 years agoAdded small delay for test_parametrized_build
Aleksey Maksimov [Sat, 12 Apr 2014 16:06:08 +0000 (00:06 +0800)]
Added small delay for test_parametrized_build

so assert will have a chance on fast machines

10 years agoAdded support for 'del' in Jenkins object: remove job
Aleksey Maksimov [Sat, 12 Apr 2014 15:54:07 +0000 (23:54 +0800)]
Added support for 'del' in Jenkins object: remove job

10 years agoSet unitest2 to be used only on python 2.6
Aleksey Maksimov [Sat, 12 Apr 2014 15:21:17 +0000 (23:21 +0800)]
Set unitest2 to be used only on python 2.6

10 years agoAdded unittest2 so travis can run tests with recent Python
Aleksey Maksimov [Sat, 12 Apr 2014 15:02:43 +0000 (23:02 +0800)]
Added unittest2 so travis can run tests with recent Python

10 years agoSet to use unittest2 library instead of unittest
Aleksey Maksimov [Sat, 12 Apr 2014 14:55:20 +0000 (22:55 +0800)]
Set to use unittest2 library instead of unittest

This library backports all modern unittest features
to old versions of Python

10 years agoFixed incorrect merge
Aleksey Maksimov [Sat, 12 Apr 2014 14:00:21 +0000 (22:00 +0800)]
Fixed incorrect merge

10 years agoMerge remote-tracking branch 'upstream/python3_experimental' into python3_experimental
Aleksey Maksimov [Sat, 12 Apr 2014 13:56:25 +0000 (21:56 +0800)]
Merge remote-tracking branch 'upstream/python3_experimental' into python3_experimental

Conflicts:
jenkinsapi/fingerprint.py

10 years agoMerge pull request #266 from sateeshkumarb/master
Aleksey Maksimov [Thu, 10 Apr 2014 16:00:17 +0000 (00:00 +0800)]
Merge pull request #266 from sateeshkumarb/master

Add test to verify fetching of plugin details

10 years agoMerge pull request #269 from lechat/fix_268
Aleksey Maksimov [Thu, 10 Apr 2014 15:57:40 +0000 (23:57 +0800)]
Merge pull request #269 from lechat/fix_268

Fix for issue #268 and unit tests for it

10 years agoFix for issue #268 and unit tests for it
Aleksey Maksimov [Thu, 10 Apr 2014 15:26:35 +0000 (23:26 +0800)]
Fix for issue #268 and unit tests for it

10 years agoAdd test to verify fetching of plugin details,
Sateesh Kumar [Wed, 2 Apr 2014 18:02:08 +0000 (23:32 +0530)]
Add test to verify fetching of plugin details,

10 years agoMerge pull request #265 from sateeshkumarb/patch-1
Aleksey Maksimov [Wed, 2 Apr 2014 00:42:41 +0000 (08:42 +0800)]
Merge pull request #265 from sateeshkumarb/patch-1

Formatting fixes in README.rst

10 years agoFormatting fixes
Sateesh [Tue, 1 Apr 2014 09:23:38 +0000 (14:53 +0530)]
Formatting fixes

Remove leading whitespaces in some of the lists, that was resulting in a vertical bar in the rendered README.rst file.

10 years agoMerge pull request #264 from lechat/job_improvements
Aleksey Maksimov [Mon, 31 Mar 2014 14:49:33 +0000 (22:49 +0800)]
Merge pull request #264 from lechat/job_improvements

Job improvements

10 years agoSmall changes in jobs classes
Aleksey Maksimov [Mon, 31 Mar 2014 14:34:00 +0000 (22:34 +0800)]
Small changes in jobs classes

10 years agoMerge branch 'master' of github.com:salimfadhley/jenkinsapi
Aleksey Maksimov [Sun, 30 Mar 2014 08:52:36 +0000 (16:52 +0800)]
Merge branch 'master' of github.com:salimfadhley/jenkinsapi

10 years agoSimplified get_job_url function
Aleksey Maksimov [Sat, 29 Mar 2014 17:07:25 +0000 (01:07 +0800)]
Simplified get_job_url function

10 years agoFixed pylint violations
Aleksey Maksimov [Sat, 29 Mar 2014 16:51:12 +0000 (00:51 +0800)]
Fixed pylint violations

10 years agoAdapt fingerprint to catch HTTPError from requests
Sateesh Kumar [Fri, 21 Mar 2014 17:27:33 +0000 (22:57 +0530)]
Adapt fingerprint to catch HTTPError from requests

Remove reference to urllib2 exceptions as the HTTP fetches
uses 'requests' module

10 years agominor fix to exception messages to improve readability.
Sateesh [Thu, 20 Mar 2014 15:17:39 +0000 (20:47 +0530)]
minor fix to exception messages to improve readability.

10 years agoAdd support to create Jenkins object without immediately polling jobs.
Joao Vale [Wed, 12 Mar 2014 17:39:41 +0000 (17:39 +0000)]
Add support to create Jenkins object without immediately polling jobs.

10 years agoMerge pull request #252 from jpiron/develop
Aleksey Maksimov [Sat, 29 Mar 2014 17:19:13 +0000 (01:19 +0800)]
Merge pull request #252 from jpiron/develop

polling jenkins each time Jobs is initialized

10 years agoMerge pull request #260 from sateeshkumarb/patch-1
Aleksey Maksimov [Sat, 29 Mar 2014 17:17:36 +0000 (01:17 +0800)]
Merge pull request #260 from sateeshkumarb/patch-1

Add a few Jenkins API usage examples

10 years agoMerge pull request #262 from lechat/master
Aleksey Maksimov [Sat, 29 Mar 2014 17:16:13 +0000 (01:16 +0800)]
Merge pull request #262 from lechat/master

Simplified view.get_job_url function

10 years agoSimplified get_job_url function
Aleksey Maksimov [Sat, 29 Mar 2014 17:07:25 +0000 (01:07 +0800)]
Simplified get_job_url function

10 years agoMerge pull request #261 from lechat/master
Aleksey Maksimov [Sat, 29 Mar 2014 17:01:23 +0000 (01:01 +0800)]
Merge pull request #261 from lechat/master

Fixed pylint violations

10 years agoFixed pylint violations
Aleksey Maksimov [Sat, 29 Mar 2014 16:51:12 +0000 (00:51 +0800)]
Fixed pylint violations

10 years agoAdd a few Jenkins API usage examples
Sateesh [Sat, 29 Mar 2014 15:01:34 +0000 (20:31 +0530)]
Add a few Jenkins API usage examples

Add following examples showing usage of Jenkins API:
* Get Jenkins version, Get Job details, Enable/disable a job

10 years agoMerge pull request #257 from sateeshkumarb/master
Aleksey Maksimov [Fri, 28 Mar 2014 07:34:43 +0000 (15:34 +0800)]
Merge pull request #257 from sateeshkumarb/master

Adapt fingerprint to catch HTTPError from requests

10 years agoAdapt fingerprint to catch HTTPError from requests
Sateesh Kumar [Fri, 21 Mar 2014 17:27:33 +0000 (22:57 +0530)]
Adapt fingerprint to catch HTTPError from requests

Remove reference to urllib2 exceptions as the HTTP fetches
uses 'requests' module

10 years agoMerge pull request #256 from sateeshkumarb/master
Aleksey Maksimov [Fri, 21 Mar 2014 12:47:04 +0000 (20:47 +0800)]
Merge pull request #256 from sateeshkumarb/master

minor fix to exception messages to improve readability.

10 years agoMerge remote-tracking branch 'upstream/master'
Sateesh Kumar [Thu, 20 Mar 2014 17:42:07 +0000 (23:12 +0530)]
Merge remote-tracking branch 'upstream/master'

10 years agominor fix to exception messages to improve readability.
Sateesh [Thu, 20 Mar 2014 15:17:39 +0000 (20:47 +0530)]
minor fix to exception messages to improve readability.

10 years agoMerge pull request #254 from jvale/lazy_load_jobs
Aleksey Maksimov [Thu, 20 Mar 2014 13:58:24 +0000 (21:58 +0800)]
Merge pull request #254 from jvale/lazy_load_jobs

Add support to create Jenkins object without immediately polling jobs.

10 years agoAdd support to create Jenkins object without immediately polling jobs.
Joao Vale [Wed, 12 Mar 2014 17:39:41 +0000 (17:39 +0000)]
Add support to create Jenkins object without immediately polling jobs.

10 years agopolling jenkins each time Jobs is initialized
jpiron [Thu, 13 Mar 2014 17:11:00 +0000 (18:11 +0100)]
polling jenkins each time Jobs is initialized

10 years agoAdded conversions from bytes to strings
Aleksey Maksimov [Sun, 2 Mar 2014 10:06:00 +0000 (18:06 +0800)]
Added conversions from bytes to strings

10 years agoChanged Jenkins URL to download LTS version
Aleksey Maksimov [Sun, 23 Feb 2014 12:01:50 +0000 (20:01 +0800)]
Changed Jenkins URL to download LTS version

Bleeding edge version may not be stable.

10 years agoMerge pull request #248 from Toumaz/master
Aleksey Maksimov [Sun, 23 Feb 2014 14:25:46 +0000 (22:25 +0800)]
Merge pull request #248 from Toumaz/master

resolve_job_folders skipping jobs fix

10 years agoadd unit test for multiple top level folders
Tomas Olander [Sun, 23 Feb 2014 13:50:23 +0000 (14:50 +0100)]
add unit test for multiple top level folders

10 years agoChanged Jenkins URL to download LTS version
Aleksey Maksimov [Sun, 23 Feb 2014 12:01:50 +0000 (20:01 +0800)]
Changed Jenkins URL to download LTS version

Bleeding edge version may not be stable.

10 years agoresolve_job_folders skipping jobs fix
Tomas Olander [Sun, 23 Feb 2014 11:34:37 +0000 (12:34 +0100)]
resolve_job_folders skipping jobs fix

JenkinsBase.resolve_job_folders removed jobs from the list while
iterating, causing jobs to be skipped over whenever a job folder was
encountered.

10 years agoMerge pull request #247 from lhupfeldt/python3_experimental
Aleksey Maksimov [Fri, 21 Feb 2014 15:51:23 +0000 (23:51 +0800)]
Merge pull request #247 from lhupfeldt/python3_experimental

Python3 experimental. With failing tests as it is work in progress.

10 years agoiteritems -> items
Lars Hupfeldt [Thu, 13 Feb 2014 20:38:48 +0000 (21:38 +0100)]
iteritems -> items
Queue -> queue

10 years agobasestring, unicode, str compatibility
Lars Hupfeldt [Thu, 13 Feb 2014 19:45:19 +0000 (20:45 +0100)]
basestring, unicode, str compatibility

10 years agoexception.message -> str(exception)
Lars Hupfeldt [Thu, 13 Feb 2014 19:28:09 +0000 (20:28 +0100)]
exception.message -> str(exception)

10 years agourllib compatibility
Lars Hupfeldt [Thu, 13 Feb 2014 19:24:20 +0000 (20:24 +0100)]
urllib compatibility

10 years agoUse print() (with 'from __future__ import print_function')
Lars Hupfeldt [Thu, 13 Feb 2014 17:47:10 +0000 (18:47 +0100)]
Use print() (with 'from __future__ import print_function')

10 years agoFix wrong translation of 'except' from python2 to pytho3
Lars Hupfeldt [Thu, 13 Feb 2014 17:37:44 +0000 (18:37 +0100)]
Fix wrong translation of 'except' from python2 to pytho3

10 years agoTying to fix P3 incompatibility
Aleksey Maksimov [Thu, 13 Feb 2014 14:33:05 +0000 (22:33 +0800)]
Tying to fix P3 incompatibility

10 years agoAdded build for Python 2.6
Aleksey Maksimov [Thu, 13 Feb 2014 14:28:40 +0000 (22:28 +0800)]
Added build for Python 2.6

10 years agoAdded Python 3.3 to this branch build spec
Aleksey Maksimov [Thu, 13 Feb 2014 14:13:21 +0000 (22:13 +0800)]
Added Python 3.3 to this branch build spec

10 years agoAdded note about experimental nature of this branch
Aleksey Maksimov [Thu, 13 Feb 2014 14:02:34 +0000 (22:02 +0800)]
Added note about experimental nature of this branch

10 years agomove the stuff out of readme
Salim Fadhley [Wed, 5 Feb 2014 20:43:16 +0000 (20:43 +0000)]
move the stuff out of readme

10 years agoadded documentation about getting version info
Salim Fadhley [Wed, 5 Feb 2014 20:41:50 +0000 (20:41 +0000)]
added documentation about getting version info

10 years agoVersion bump
Salim Fadhley [Wed, 5 Feb 2014 20:28:56 +0000 (20:28 +0000)]
Version bump

10 years agoAdded Aleksey to primary authors list
Salim Fadhley [Wed, 5 Feb 2014 20:27:56 +0000 (20:27 +0000)]
Added Aleksey to primary authors list

10 years agoMerge pull request #244 from makewhatis/issue_221
Aleksey Maksimov [Wed, 5 Feb 2014 09:50:41 +0000 (17:50 +0800)]
Merge pull request #244 from makewhatis/issue_221

Addressing issue/221 - changing depth=1

10 years agoMerge pull request #224 from jpiron/master
Aleksey Maksimov [Wed, 5 Feb 2014 09:48:37 +0000 (17:48 +0800)]
Merge pull request #224 from jpiron/master

Handling empty actions while getting job parameters

10 years agoAddressing issue/221 - changing depth=1
David Johansen [Wed, 5 Feb 2014 06:54:45 +0000 (22:54 -0800)]
Addressing issue/221 - changing depth=1

  - only thing that depth=2 adds is the
  "fingerprint":[] item, which turns a
  600KB request to a 180M request on a
  large repo.

10 years agoMerge pull request #242 from rocktavious/build_invoke_fix
Aleksey Maksimov [Fri, 31 Jan 2014 02:42:13 +0000 (18:42 -0800)]
Merge pull request #242 from rocktavious/build_invoke_fix

Build invoke fix

10 years agomaking change more pythonic
Kyle [Fri, 31 Jan 2014 02:03:46 +0000 (20:03 -0600)]
making change more pythonic

10 years agoMerge pull request #236 from jvale/job_folders_support
Aleksey Maksimov [Fri, 31 Jan 2014 01:45:51 +0000 (17:45 -0800)]
Merge pull request #236 from jvale/job_folders_support

Add support for Job Folders (CloudBees Folders Plugin).

10 years agoMerge pull request #241 from makewhatis/master
Aleksey Maksimov [Wed, 29 Jan 2014 07:57:09 +0000 (23:57 -0800)]
Merge pull request #241 from makewhatis/master

Adding a method to expose /computer/api/python

10 years agoremoving debug message
David Johansen [Wed, 29 Jan 2014 05:49:22 +0000 (21:49 -0800)]
removing debug message

10 years agoAdding method to expose /computer/api/python
David Johansen [Wed, 29 Jan 2014 02:24:16 +0000 (18:24 -0800)]
Adding method to expose /computer/api/python

 - allows one to query totalExecutors and busyExecutors on a master
 - tests included, both unit and sys

10 years agoMove @lechat up the list since he's the most active maintainer
Salim Fadhley [Wed, 29 Jan 2014 00:51:37 +0000 (00:51 +0000)]
Move @lechat up the list since he's the most active maintainer

10 years agoRemove inactive developers from the main PROJECT_AUTHORS.
Salim Fadhley [Wed, 29 Jan 2014 00:47:52 +0000 (00:47 +0000)]
Remove inactive developers from the main PROJECT_AUTHORS.

10 years agoVersion bump
Salim Fadhley [Wed, 29 Jan 2014 00:42:33 +0000 (00:42 +0000)]
Version bump

10 years agoMerge pull request #239 from rocktavious/login_fix
Aleksey Maksimov [Wed, 29 Jan 2014 00:25:50 +0000 (16:25 -0800)]
Merge pull request #239 from rocktavious/login_fix

logging fix for invalid response

10 years agofixing pylint failure
Kyle [Mon, 27 Jan 2014 20:37:53 +0000 (14:37 -0600)]
fixing pylint failure

10 years agojob.get_build_triggerurl update
Kyle [Mon, 27 Jan 2014 20:34:03 +0000 (14:34 -0600)]
job.get_build_triggerurl update

job.get_build_triggerurl doesn't need arguments anymore

10 years agoget_build_triggerurl logic fix
Kyle [Mon, 27 Jan 2014 20:27:53 +0000 (14:27 -0600)]
get_build_triggerurl logic fix

job.get_build_triggerurl had invalid logic for determining what build url to be using.  Parameterized builds can only be started via the rest API with the buildWithParameters endpoint even if you don't pass any parameters in.

10 years agologging fix for invalid response
Kyle [Mon, 27 Jan 2014 20:01:11 +0000 (14:01 -0600)]
logging fix for invalid response

10 years agoFix tests.
Joao Vale [Mon, 27 Jan 2014 18:02:28 +0000 (18:02 +0000)]
Fix tests.

10 years agoMerge pull request #238 from bhuvaneswaran/stories/237
Aleksey Maksimov [Mon, 27 Jan 2014 16:18:40 +0000 (08:18 -0800)]
Merge pull request #238 from bhuvaneswaran/stories/237

fix for #237

10 years agofix for #237
Bhuvan Arumugam [Mon, 27 Jan 2014 15:01:13 +0000 (20:31 +0530)]
fix for #237

When the first job for the job was deleted and there is only one job (latest?)
in the build, get_job() API fail with TypeError.

This commit fixes this issue.
  https://github.com/salimfadhley/jenkinsapi/issues/237

10 years agoAdd support for Job Folders (CloudBees Folders Plugin).
Joao Vale [Fri, 24 Jan 2014 20:53:46 +0000 (20:53 +0000)]
Add support for Job Folders (CloudBees Folders Plugin).

10 years agoMerge pull request #226 from sateeshkumarb/hg_scm_fix
Aleksey Maksimov [Wed, 8 Jan 2014 08:45:09 +0000 (00:45 -0800)]
Merge pull request #226 from sateeshkumarb/hg_scm_fix

fix for getting scm url and branch for hg repos

10 years agoMerge pull request #231 from lechat/master
Aleksey Maksimov [Fri, 3 Jan 2014 18:39:01 +0000 (10:39 -0800)]
Merge pull request #231 from lechat/master

Fixed PyLint errors

10 years agoFixed PyLint errors
Aleksey Maksimov [Fri, 3 Jan 2014 18:28:24 +0000 (02:28 +0800)]
Fixed PyLint errors

10 years agoMerge pull request #230 from larrycai/master
Aleksey Maksimov [Fri, 3 Jan 2014 07:11:27 +0000 (23:11 -0800)]
Merge pull request #230 from larrycai/master

update the create_view example to reflect the latest views API

10 years agoupdate the create_view example to reflect the latest views API
Larry Cai [Fri, 3 Jan 2014 06:49:37 +0000 (14:49 +0800)]
update the create_view example to reflect the latest views API

10 years agoMerge pull request #229 from Vobo/master
Aleksey Maksimov [Fri, 3 Jan 2014 00:34:00 +0000 (16:34 -0800)]
Merge pull request #229 from Vobo/master

Method for retrieving the last stable build

10 years agoAdd the method for retrieving the last stable build
Vladimir Bogatyrev [Tue, 1 Oct 2013 11:42:25 +0000 (15:42 +0400)]
Add the method for retrieving the last stable build

10 years agoCorrect name of testcase
Sateesh Kumar [Thu, 12 Dec 2013 19:07:23 +0000 (00:37 +0530)]
Correct name of testcase

10 years agoRemove sys.path changes added for debugging
Sateesh Kumar [Thu, 12 Dec 2013 19:01:46 +0000 (00:31 +0530)]
Remove sys.path changes added for debugging

10 years agofix for getting scm url and branch for hg repos
Sateesh Kumar [Thu, 12 Dec 2013 18:41:56 +0000 (00:11 +0530)]
fix for getting scm url and branch for hg repos

10 years agoMerge branch 'dev'
jpiron [Tue, 10 Dec 2013 08:41:04 +0000 (09:41 +0100)]
Merge branch 'dev'

10 years agoOnly process non empty actions while getting job parameters
jpiron [Tue, 10 Dec 2013 07:50:18 +0000 (08:50 +0100)]
Only process non empty actions while getting job parameters

10 years agoMerge pull request #223 from sateeshkumarb/version_query
Aleksey Maksimov [Sun, 8 Dec 2013 06:54:01 +0000 (22:54 -0800)]
Merge pull request #223 from sateeshkumarb/version_query

Added method to get Jenkins version

10 years agoFix pep8 violation
Sateesh Kumar [Sun, 8 Dec 2013 03:37:02 +0000 (09:07 +0530)]
Fix pep8 violation

10 years agoMake version a property
Sateesh Kumar [Sun, 8 Dec 2013 03:24:32 +0000 (08:54 +0530)]
Make version a property

10 years agoFix pylint warnings
Sateesh Kumar [Sat, 7 Dec 2013 16:55:53 +0000 (22:25 +0530)]
Fix pylint warnings

10 years agoUpdate to show version usage
Sateesh Kumar [Sat, 7 Dec 2013 16:33:40 +0000 (22:03 +0530)]
Update to show version usage

10 years agoAdd method to return Jenkins Version
Sateesh Kumar [Sat, 7 Dec 2013 16:24:38 +0000 (21:54 +0530)]
Add method to return Jenkins Version

10 years agoMerge pull request #214 from lechat/delete_view_by_url_fix
Aleksey Maksimov [Fri, 29 Nov 2013 16:34:49 +0000 (08:34 -0800)]
Merge pull request #214 from lechat/delete_view_by_url_fix

Moved delete_view_by_url back to jenkins object Issue #209

10 years agoMoved delete_view_by_url back to jenkins object
Aleksey Maksimov [Fri, 29 Nov 2013 16:21:05 +0000 (00:21 +0800)]
Moved delete_view_by_url back to jenkins object

10 years agoMerge pull request #213 from pdunnigan/master
Salim Fadhley [Wed, 27 Nov 2013 00:08:26 +0000 (16:08 -0800)]
Merge pull request #213 from pdunnigan/master

error "Problem accessing /queue/api/python" when attempting parameterized build on jenkins server using prefix / context path