jenkins-external
jenkins-external is a Python script that spawns a command, records
its output and exit code, and then logs this information to Jenkins
in an external job.
Currently, SSH is the only supported method to send output to Jenkins. Therefore, you must go to Configure Global Security → SSH Server, and enable the SSH server on a fixed port.
Installation
pip install jenkins-external
Usage
usage: jenkins-external [-h] [-d DISPLAY_NAME] [-s SSH_COMMAND]
[-x EXECUTABLE] [-q]
host port job command [args [args ...]]
Runs a command, and passes its output to Jenkins as an external job.
positional arguments:
host Jenkins hostname (for Jenkins SSH server)
port Jenkins SSH server port
job Jenkins job name
command command to be run under this script
args arguments to pass to the command
optional arguments:
-h, --help show this help message and exit
-u USER, --user USER Jenkins user to login as (using public key
authentication, default: your username)
-d DISPLAY_NAME, --display-name DISPLAY_NAME
display name of the build
-s SSH_COMMAND, --ssh-command SSH_COMMAND
ssh command
-x EXECUTABLE, --executable EXECUTABLE
the executable to actually use
-q, --no-job-id do not print the job ID in the end
Example
# Sends 'Hello, World!' to a job called `my-job` on a Jenkins instance
# running on `jenkins.example.com`, whose SSH port is 12345.
jenkins-external jenkins.example.com 12345 my-job echo 'Hello, World!'
Metadata
Release files for jenkins-external 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jenkins-external-0.2.tar.gz | 3.9 kB | Without provenance | Details for jenkins-external-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jenkins_external-0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for jenkins_external-0.2-py2.py3-none-any.whl |
Total release size: 8.2 kB
Release files / jenkins-external-0.2.tar.gz
| Download URL | jenkins-external-0.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1136fc89aac813b0b3fcdb7bdcd1bfa1252072586016f24f8979aadeb4e430a5
|
|
BLAKE2b-256 checksum How to use checksums |
ae551f64c63f9deee206f6a6dba329fd0f6561eb526585e54ca5e4ec1716ad01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.13
|
Release files / jenkins_external-0.2-py2.py3-none-any.whl
| Download URL | jenkins_external-0.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8520f094abaa0b9d515bbb5ecbeed37680c3ed8b15aca74b42f3e284d24684aa
|
|
BLAKE2b-256 checksum How to use checksums |
bd6d590f618c72944f7efd49f0940d88ca8a87af9551ceeeeb5573ac4e99f5ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.13
|
Security for jenkins-external 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.