Upload file from workspace to Nexus in powershell

Welcome Forums General PowerShell Q&A Upload file from workspace to Nexus in powershell

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
2 years, 7 months ago.

  • Author
    Posts
  • #38976

    Participant
    Points: 0
    Rank: Member

    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

    Participant
    Points: 0
    Rank: Member

    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.

The topic ‘Upload file from workspace to Nexus in powershell’ is closed to new replies.