Upload file from workspace to Nexus in powershell

This topic contains 1 reply, has 2 voices, and was last updated by  Alex 2 years, 1 month ago.

  • Author
  • #38976

    Kalyan Bhave

    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


    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.