Upload file from workspace to Nexus in powershell

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Alex Alex 7 months ago.

  • Author
    Posts
  • #38976
    Profile photo of Kalyan Bhave
    Kalyan Bhave
    Participant

    I am trying to upload files from Jenkins workspace to Nexus URL. Below is the Powershell script. but when I execute this below is the error message.One problem with my attempt is that Invoke-WebRequest doesn't have a parameter –upload-file. I need to read the content of the file and then send it via the request.I am not aware of this. If any one aware of any site please update here so that I can read it and update my script

  • #38977
    Profile photo of Alex
    Alex
    Participant

    HI Kalyan,

    I don't think you understand the Invoke-WebRequest function. Have a look at :

    TechNet Invoke-WebRequest

    I am not too sure how to produce what you are doing with PowerShell.

You must be logged in to reply to this topic.