Skip to content

Please add more documentation details / examples #31

Open
@mr2001

Description

@mr2001

Hello,

I am trying to download a file from Jenkins. The authentication part, using the API token works correctly. However, I constantly get "error 404 not found" when trying to download a file. Do I have to specify the full path to the file? If yes, then what is the correct format? Is this a web address?
Is the job name also an URL?

This is the code that fails:
` Using stream = client.Artifacts.[Get]("Req_Test", 156, "AllPlot.xml") '<-- ERROR HERE

  Using reader = New StreamReader(stream)
    Dim rawresp As String
    rawresp = reader.ReadToEnd()
  End Using
End Using`

Error is:
JenkinsNET.Exceptions.JenkinsArtifactGetException: 'Failed to retrieve artifact 'AllPlot.xml'!'
WebException: The remote server returned an error: (404) Not Found.

Can you please advise? Would be useful to include some example in the Wiki.

Thank you for your help,
Regards,
M. Rusu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions