I have one csv file in my workspace which i need to copy to another machine where the selenium grid running and so that the test can use it while executing scripts. please suggest a way to copy these files?
有一个本地的Jenkins解决方案,不确定是否需要Java: 存档 cvs文件,然后使用Copy Artifact Plugin将其添加到Selenium作业的WS中。
I think the easiest solution is using dropbox or some service like that. You can copy with an execute shell command to dropbox folder in your jenkins job. And it will automatically synchronize with other machines you installed.
cp ~/Home/jobs/YourJob/workspace/yourproject/build/outputs/foo.csv /User/youruser/Dropbox
You can use the new Pipeline Plugin (aka Workflow) and do something like:
node('master') {
//stash what ever you need
stash includes: 'path/to/things/*', name: 'binary'
}
node('selenium') {
//get it in selenium server
unstash 'binary'
}
Note: You have to configure 'selenium' as slave
You can have more information:
https://www.cloudbees.com/blog/parallelism-and-distributed-builds-jenkins
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.