Release Automation

Expand all | Collapse all

Uploading Artifacts in nexus Repository

  • 1.  Uploading Artifacts in nexus Repository

    Posted Sep 28, 2016 07:51 AM

    Hello All,

     

    My question is about how can we upload the artifacts. I am using the action "nexus-upload nexus artifact" and giving all the details. But after testing the action I found that action is running successfully but artifact is not uploading. Can anyone help me to find the solution.



  • 2.  Re: Uploading Artifacts in nexus Repository

    Posted Sep 28, 2016 08:13 AM

    I would check in the agent nolio_all.log the exit code of the upload process to the repository and verify if its indeed succeeded



  • 3.  Re: Uploading Artifacts in nexus Repository

    Posted Sep 28, 2016 08:44 AM

    Hello Jacky,

     

    Many thanks for your reply. Please let me know how I can proceed further. Waiting for your response.



  • 4.  Re: Uploading Artifacts in nexus Repository

    Posted Sep 28, 2016 10:58 AM

    Hi

    Can you run the action and post the nolio_all.log?

    Thanks

    Jacky



  • 5.  Re: Uploading Artifacts in nexus Repository

    Broadcom Employee
    Posted Sep 28, 2016 10:54 AM

    I have a question, when you are testing the Nexus upload artifacts actions, does the artifact exist on the machine(Agent) you are testing? 



  • 6.  Re: Uploading Artifacts in nexus Repository

    Posted Sep 28, 2016 01:12 PM

    Hello srisa,

     

    Yes the artifact is present on the machine from where I am doing testing.



  • 7.  Re: Uploading Artifacts in nexus Repository

    Broadcom Employee
    Posted Sep 28, 2016 01:18 PM

    Can you rerun the test and upload the nolio_all.log file as suggested by Jacky.



  • 8.  Re: Uploading Artifacts in nexus Repository

    Posted Sep 28, 2016 02:40 PM

    Hello Srisa,

     

    Right Now I am not having access to the agent machine. I will surely be uploading the log file very soon.



  • 9.  Re: Uploading Artifacts in nexus Repository

    Posted Sep 29, 2016 07:11 AM

    Hello Jacky and Srisa,

     

    I have gone through the log file and found that  Error is: "The target path [D:\Vinee\Selenium\gmail_login.java] does not exist".

    Is it because the java file is not present on the agent machine?

     

    Please find some of the error lines from the log file.

     

    2016-09-27 18:23:44,722 [job-98304-jobServer-98304-6:Nexus - Upload Nexus Artifact(P12526000.F12530000.E12531000):Nexus - Upload Nexus Artifact] INFO  (com.nolio.platform.shared.communication.services.artifacts.repositoryplugins.ArtifactRepositoryPlugin:294) - uploading artifact [/repos/repos1/1.0/repos1-1.0.jar] from target path [D:\Vinee\Selenium\gmail_login.java] throwExceptionOnFail is [true]
    2016-09-27 18:23:44,722 [job-98304-jobServer-98304-6:Nexus - Upload Nexus Artifact(P12526000.F12530000.E12531000):Nexus - Upload Nexus Artifact] ERROR (com.nolio.platform.shared.communication.services.artifacts.repositoryplugins.ArtifactRepositoryPlugin:300) - Unable to upload the artifact [/repos/repos1/1.0/repos1-1.0.jar]. The target path [D:\Vinee\Selenium\gmail_login.java] does not exist.
    2016-09-27 18:23:44,723 [job-98304-jobServer-98304-6:Nexus - Upload Nexus Artifact(P12526000.F12530000.E12531000):Nexus - Upload Nexus Artifact] WARN  (com.nolio.platform.shared.datamodel.Action:46) - Error uploading file to repository: Unable to upload the artifact [/repos/repos1/1.0/repos1-1.0.jar]. The target path [D:\Vinee\Selenium\gmail_login.java] does not exist.
    com.nolio.platform.shared.executables.actions.nexus.NexusException: Error uploading file to repository: Unable to upload the artifact [/repos/repos1/1.0/repos1-1.0.jar]. The target path [D:\Vinee\Selenium\gmail_login.java] does not exist.
        at com.nolio.platform.shared.executables.actions.nexus.UploadNexusArtifact.httpRequest(UploadNexusArtifact.java:198)



  • 10.  Re: Uploading Artifacts in nexus Repository
    Best Answer

    Posted Sep 29, 2016 07:15 AM

    Seems like that , or it could be permission issues (The user can't access the file )



  • 11.  Re: Uploading Artifacts in nexus Repository

    Broadcom Employee
    Posted Oct 05, 2016 04:21 AM

    Hi Prashant,

    Did the answers on this thread answered your question? If it did please mark it as the right answer. When your question is not answered or you still have additional questions please let us know.

    With Kind Regards



  • 12.  Re: Uploading Artifacts in nexus Repository

    Broadcom Employee
    Posted Oct 10, 2016 08:22 AM

    Hi Prashant

    I believe your questions has been answered, I will mark this as the correct answer.

    When your question is not answered or you still have additional questions please let us know.

    With Kind Regards

     

    Dirk