Open timja opened 8 years ago
What job type are you specifically referring to?
danielbeck, the jobs of a Multibranch Pipeline. If I ask for all jobs I get the folder of the Multibranch Pipeline, but not it's content.
It's not recursive. Are you saying list-jobs NameOfTheMultibranchFolder does not work?
No response to comment asking for clarification in a year.
gdj:
danielbeck This is correct, you're unable to get the configured multibranch workflow branches
$ java -jar ~/jenkins-cli/jenkins-cli.jar -auth @~/jenkins-cli/auth.txt -s "http://localhost:8080/" -webSocket list-jobs | grep SSL_daily SSL_daily $ java -jar ~/jenkins-cli/jenkins-cli.jar -auth @~/jenkins-cli/auth.txt -s "http://localhost:8080/" -webSocket list-jobs SSL_daily ERROR: No view or item group with the given name 'SSL_daily' found.
gdj Could you provide the "full name" of a branch job in your environment so the output makes sense to users not knowing it?
gdj:
SSL_daily is the multibranch workflow project, which configures the branches from git. The URL for the full job looks like so: http://example.com:8090/job/SSL_daily/job/master/
If you try to build just SSL_daily it'll fail.
$ java -jar ~/jenkins-cli/jenkins-cli.jar -auth @~/jenkins-cli/auth.txt -s "http://localhost:8080/" -webSocket build SSL_daily ERROR: No such job 'SSL_daily'; perhaps you meant 'SSL_daily/master'?
You also have to specify the branch for build to work.
$ java -jar ~/jenkins-cli/jenkins-cli.jar -auth @~/jenkins-cli/auth.txt -s "http://localhost:8080/" -webSocket ~proci/bin/jenkins-cli build SSL_daily/master $ echo $? 0
Interesting. I see where this is coming from, ComputedFolder isn't a ModifiableTopLevelItemGroup and that is what ListJobsCommand expects. There's no TopLevelItemGroup or similar more applicable interface, unfortunately.
The CLI list-jobs is not listing sub projects of an multibranch project.
Originally reported by mheinzerling, imported from: CLI list-jobs is not listing multibranch sub projects