Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joemiller/hudson_wrapper
Shell script for wrapping External Hudson jobs (eg: cron jobs) and posting their results to Hudson
https://github.com/joemiller/hudson_wrapper
Last synced: 13 days ago
JSON representation
Shell script for wrapping External Hudson jobs (eg: cron jobs) and posting their results to Hudson
- Host: GitHub
- URL: https://github.com/joemiller/hudson_wrapper
- Owner: joemiller
- Created: 2010-10-21T20:12:49.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2011-06-30T18:09:50.000Z (over 13 years ago)
- Last Synced: 2023-03-11T06:58:09.041Z (over 1 year ago)
- Language: Shell
- Homepage: http://joemiller.me
- Size: 311 KB
- Stars: 12
- Watchers: 0
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Simple script for wrapping external Hudson jobs and sending their output to Hudson.
Best used for cron jobs.
This script originated here: http://blog.markfeeney.com/2010/01/hudson-external-jobs-wrapper-script.html
I added a few simple features:
1) If a job doesn't exist in Hudson, it will automatically be created.
2) Job names with whitespace are now supported (eg: "My Job #1")3) Supports authenticating to Hudson instances that require it
- Set CURL_AUTH_OPTS environment variable, or hardcode into the script (see example in the script)
- Be aware that this isn't the securest method, since your password could be read by someone on
the same machine by examining the environment or looking at the script itself.Examples:
$ hudson_wrapper http://hudson.myco.com:8080 testjob /path/to/script.sh
$ hudson_wrapper http://hudson.myco.com:8080 testjob 'sleep 2 && ls -la'example with authentication:
$ CURL_AUTH_OPTS="--user myuser:pass" hudson_wrapper http://hudson.myco.com:8080 testjob /path/to/script.sh