file upload Jenkins pipeline JOB

233 views
Skip to first unread message

razz...@gmail.com

unread,
Nov 16, 2022, 3:43:23 AM11/16/22
to Selenium Users
Hi, 

I am trying to execute my selenium scripts (JAVA) in Jenkins pipeline. I have scenario where I have to upload a file and continue the scenario. 
I am using .sendKeys() which works fine in local but failing in Jenkins getting file not found exception.

Reason is my selenium scripts are running in one node and files are stored in other node. That's why I am getting the issue. 
Can someone help to how this can be resolved and where to do the changes ?

Thanks

Ananda P

unread,
Nov 16, 2022, 6:08:12 AM11/16/22
to seleniu...@googlegroups.com
Hi

this may not work but try this put the file in hub and get that file into hub code and use it in all the nodes

thanks
Ananda

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/91f010b7-2308-43c1-b4ca-0d31200d2d9an%40googlegroups.com.

yogesh bhatt

unread,
Nov 16, 2022, 7:35:56 AM11/16/22
to Selenium Users
Hi, Pls check below link and see if it helps. When you set this arguments it automatically transfer your file from local to remote hub and from there it use for the file upload.

Reply all
Reply to author
Forward
0 new messages