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

jcli job artifact download not working

Open natsen opened this issue 3 years ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. jcli --debug --logger-level debug job artifact download "test"

Expected behavior Downloads output.yaml file artifact generated for the build

Screenshots {"level":"debug","message":"read config file","path":""} {"level":"debug","message":"send HTTP request","URL":"http://localhost/jenkins/job/test/lastBuild/wfapi/artifacts","method":"GET"} {"level":"debug","message":"HTTP request as curl","cmd":"curl -X 'GET' -H 'Authorization: Basic xxxx' -H 'User-Agent: jcli; 0.0.38; a99158f' 'http://localhost/jenkins/job/test/lastBuild/wfapi/artifacts'"} error: failed to download from 'http://localhost**/jenkins//jenkins/**job/test/lastBuild/wfapi/artifacts/output.yaml': status code: 404 {"level":"debug","message":"done with command","command":"job.artifact <jobName> [buildID].download <jobName> [buildID]","duration":0.150002744}

Desktop (please complete the following information):

  • OS: linux
  • Command Tool - jcli cmd
  • Version [e.g. v0.0.38]

Additional context Notice jenkins/jenkins in the debug message presented in Screenshots section. The url construction looks to be the issue.

natsen avatar Jan 04 '22 23:01 natsen