jenkins-monitor-job script does not handle jobs that contain spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jenkins (Ubuntu) |
Fix Released
|
Low
|
James Page |
Bug Description
Reporting this bug on Ubuntu 11.10
Installed package version: Installed: 1.409.1-0ubuntu4
The script by James in /usr/bin/
However, since $@ is not quoted, jenkins-monitor-job fails when the project name contains a space. For instance
jenkins-monitor-job "this_works" ls # this works
jenkins-monitor-job "this does not work" ls # returns an error about the project 'this' not existing
The solution is to wrap the $@ arguments between quotes in /usr/bin/
30c30
< java -jar ${JENKINS_
---
> java -jar ${JENKINS_
This has been working fine on my side and should be corrected in the jenkins package.
Cheers,
Gaspard
Confirmed - pretty easy to reproduce.