It's likely the following:

list-jobs shows the project's _display name_, but as parameter to commands you 
need to specify the project's real _name_.

It's mind-bogglingly stupid, and there is currently no solution other than not 
using display names for projects, or patching Jenkins.

A possible solution is tracked as JENKINS-22301.

On 22.08.2014, at 01:03, G Dameron <[email protected]> wrote:

> I can successfully run the list-jobs CLI:
> java -jar /path/to/jenkins-cli.jar -s http://my_server.com:8080/ list-jobs
> and get a full listing of all the project names on my server:
> project_A 
> project_B 
> project_C 
> ...
>  
> But if I try to get one of them:
> java -jar /path/to/jenkins-cli.jar -s http://my_server.com:8080/ get-job 
> project_B
> ... I get this:
> No such job 'project_B'
> <... get-job's usage information  ...>
> 
> I'm on 1.563. I get the same behavior inside a Jenkins job as I do with a 
> standalone bash script.
> 
> [FYI: We're using LDAP authentication, and both my Jenkins job and my 
> standalone bash script have the two CLI commands above preceded by a "login", 
> per the workaround shown in 
> https://issues.jenkins-ci.org/browse/JENKINS-21086. I've also done a reload 
> config from disk, but it didn't help.]
> 
> Bound to be something simple. What am I missing here?
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to