TO REPRODUCE (performed all in same shell)
$ gem install jenkins
$ export JENKINS_HOST=jenkins.example.com
$ export JENKINS_PORT=8080
$ jenkins console myjob #shows /job/myjob/lastBuild/consoleText
$ # The following all return this response<https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/h...>
$ jenkins console myjob 10
$ jenkins console myjob "10"
$ jenkins console myjob lastBuild
$ jenkins console myjob "lastBuild"
All of these succeed:
$ curl jenkins.example.com:8080/job/myjob/10/consoleText
$ curl jenkins.example.com:8080/job/myjob/lastBuild/consoleText
Relevant
cli.rb: https://github.com/cowboyd/jenkins.rb/blob/master/lib/jenkins/cli.rb#...
Relevant
api.rb: https://github.com/cowboyd/jenkins.rb/blob/master/lib/jenkins/api.rb#...
The last version release was 2mo ago, but neither of these files has had
any edits since 3mo ago, so I assume it's not something that's just in dev
still.
Is this a bug. Seems someone else would have run into this. I normally have
a squidman proxy set up, but I disabled just in case, and confirm that it
was off (in the same shell I was running jenkins.rb) for curl and wget. Any
advice would be greatly appreciated :)