jenkins-cli icon indicating copy to clipboard operation
jenkins-cli copied to clipboard

URLEncode project names passed to commands

Open sempervictus opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. When a job has spaces in its name, jcli cannot reference it appropriately even when quoted:

jcli job history 'ArchLinux Public Package Builder'
Error: not found resources

The reference does pass when pre-encoded by the user as jcli job history ArchLinux%20Public%20Package%20Builder

Describe the solution you'd like Rewriting spaces and special chars to comply with URL encoding inline by the client should address the issue transparently

sempervictus avatar Feb 13 '21 13:02 sempervictus

@sempervictus You can try jcli job history "/job/ArchLinux Public Package Builder"

yJunS avatar Feb 14 '21 03:02 yJunS

If your item's name has space, use /job/[item name] can query

yJunS avatar Feb 14 '21 03:02 yJunS