Skip to content

jcli job artifact download not working #660

Closed
@natsen

Description

@natsen

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 [buildID].download [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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions