{"id":18747642,"url":"https://github.com/quantum5/jenkins-external","last_synced_at":"2025-11-24T19:30:15.283Z","repository":{"id":57438124,"uuid":"156037731","full_name":"quantum5/jenkins-external","owner":"quantum5","description":"Runs a command, and sends its output to a Jenkins external job.","archived":false,"fork":false,"pushed_at":"2018-11-04T04:54:39.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T13:47:37.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quantum5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-04T01:05:45.000Z","updated_at":"2018-11-04T04:54:41.000Z","dependencies_parsed_at":"2022-09-10T18:40:54.553Z","dependency_job_id":null,"html_url":"https://github.com/quantum5/jenkins-external","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantum5%2Fjenkins-external","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantum5%2Fjenkins-external/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantum5%2Fjenkins-external/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantum5%2Fjenkins-external/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quantum5","download_url":"https://codeload.github.com/quantum5/jenkins-external/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239634334,"owners_count":19672183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T16:30:45.028Z","updated_at":"2025-11-24T19:30:15.177Z","avatar_url":"https://github.com/quantum5.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `jenkins-external`\n\n`jenkins-external` is a Python script that spawns a command, records\nits output and exit code, and then logs this information to Jenkins\nin an external job.\n\nCurrently, SSH is the only supported method to send output to Jenkins.\nTherefore, you must go to *Configure Global Security* → SSH Server, and\nenable the SSH server on a fixed port.\n\n## Installation\n\n```\npip install jenkins-external\n```\n\n## Usage\n\n```\nusage: jenkins-external [-h] [-d DISPLAY_NAME] [-s SSH_COMMAND]\n                        [-x EXECUTABLE] [-q]\n                        host port job command [args [args ...]]\n\nRuns a command, and passes its output to Jenkins as an external job.\n\npositional arguments:\n  host                  Jenkins hostname (for Jenkins SSH server)\n  port                  Jenkins SSH server port\n  job                   Jenkins job name\n  command               command to be run under this script\n  args                  arguments to pass to the command\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -u USER, --user USER  Jenkins user to login as (using public key\n                        authentication, default: your username)\n  -d DISPLAY_NAME, --display-name DISPLAY_NAME\n                        display name of the build\n  -s SSH_COMMAND, --ssh-command SSH_COMMAND\n                        ssh command\n  -x EXECUTABLE, --executable EXECUTABLE\n                        the executable to actually use\n  -q, --no-job-id       do not print the job ID in the end\n```\n\n### Example\n\n```\n# Sends 'Hello, World!' to a job called `my-job` on a Jenkins instance\n# running on `jenkins.example.com`, whose SSH port is 12345.\njenkins-external jenkins.example.com 12345 my-job echo 'Hello, World!'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantum5%2Fjenkins-external","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquantum5%2Fjenkins-external","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantum5%2Fjenkins-external/lists"}