blob: d9bcbe7f6c4cc30c422f8b7a5e09eb0e759493b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
#
# spec file for package python-jenkinsapi
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-jenkinsapi
Version: 0.2.26
Release: 0
Summary: A Python API for accessing resources on a Jenkins continuous-integration server
License: MIT
Group: Development/Languages/Python
Url: https://github.com/salimfadhley/jenkinsapi
Source: https://pypi.python.org/packages/source/j/jenkinsapi/jenkinsapi-%{version}.tar.gz
BuildRequires: python-setuptools
%if 0%{?suse_version} || 0%{?fedora}
BuildRequires: python-requests
Requires: python-requests
%endif
%if 0%{?fedora} || 0%{?centos_ver}
Requires: pytz
%else
Requires: python-pytz
%endif
%description
Jenkins is the market leading continuous integration system, originally created
by Kohsuke Kawaguchi.
Jenkins (and It's predecessor Hudson) are useful projects for automating common
development tasks (e.g. unit-testing, production batches) - but they are
somewhat Java-centric. Thankfully the designers have provided an excellent and
complete REST interface. This library wraps up that interface as more
conventional python objects in order to make many Jenkins oriented tasks
easier to automate.
This library can help you:
* Query the test-results of a completed build
* Get a objects representing the latest builds of a job
* Search for artefacts by simple criteria
* Block until jobs are complete
* Install artefacts to custom-specified directory structures
* username/password auth support for jenkins instances with auth turned on
* Ability to search for builds by subversion revision
* Ability to add/remove/query Jenkins slaves
* Ability to add/remove/modify Jenkins views
%prep
%setup -q
%build
python setup.py build
%if 0%{?fedora} == 23
cp -f find-debuginfo.sh /usr/lib/rpm/find-debuginfo.sh
%endif
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc README.rst
%{_bindir}/*
%{python_sitelib}/*
%changelog
|