2024 Python SDK for Jenkins
Project description
Jenkins Python SDK (jenkins_pysdk)
Installation
Use the package manager pip and JenkinsPythonSDK | pypi.org to install jenkins-pysdk.
pip install jenkins-pysdk
Quick Usage
from jenkins_pysdk.jenkins import Jenkins
jenkins = Jenkins(host="Jenkins.DNS.com", username="<username>", passw="<passw>")
OR
from jenkins_pysdk.jenkins import Jenkins
jenkins = Jenkins(
host="http://localhost",
port=8080,
username="<username>",
token="<token>",
proxies={
"http": "http://",
"https": "https://"
},
timeout=60,
verify=False
)
Why use token= parameter?
Using an API token removes the need for csrf crumbs in your requests.
The SDK handles crumbs for you, but using token= will reduce the number of API calls.
See [JenkinsPythonSDK Docs] for full documentation.
Contributing
Feel free to create pull requests.
For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
[!NOTE] I actively support this SDK, but I don't proactively check Jenkins release notes - if the SDK is missing something after an upgrade, please raise it in the discussions section.
[!IMPORTANT] Code is tested on LTS versions:
- "2.121.3" # (2018)
- "2.138.4" # (2019)
- "2.150.3" # (2019)
- "2.164.3" # (2019)
- "2.176.4" # (2019)
- "2.190.3" # (2020)
- "2.204.6" # (2020)
- "2.222.4" # (2020)
- "2.235.5" # (2021)
- "2.249.3" # (2021)
- "2.263.4" # (2021)
- "2.277.4" # (2021)
- "2.289.3" # (2021)
- "2.303.3" # (2021)
- "2.319.1" # (2022)
- "2.332.3" # (2022)
- "2.346.3" # (2022)
- "2.361.4" # (2023)
- "2.375.3" # (2023)
- "2.387.1" # (2024)
Author
KnownZero
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jenkins_pysdk-1.4.3.tar.gz
(38.2 kB
view hashes)
Built Distribution
Close
Hashes for jenkins_pysdk-1.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b7fa8c812196dd514bd6e5355c70b1be8302b7571b03975b0fabc8f1519008b |
|
MD5 | c78bf0382326dcdeda4e0445617693ea |
|
BLAKE2b-256 | d14fa75b657f8ef29c19e553e3633d143b7823f5d0e77bfe3cac6799f3149cd0 |