Where to place jar on jenkins
Hello
I want to run my tests on Jenkins server.
Where should I put my jar file (which is used within "groovy script" test steps)? Locally I have jar in the Program Files\SmartBear\ReadyAPI-3.3.0\bin\ext folder and it works.
I found this answer from Nastya_Khovrina
"If you have jar files which you need to use, these files should be placed in the <ReadyAPI installation>\bin\ext folder on the machine where you run your tests."
https://support.smartbear.com/readyapi/docs/integrations/jenkins.html
But I use only Jenkins plugin and testcaserunner >>> so there is no installation of ReadyAPI on Jenkins server (that means no <ReadyAPI installation>/bin/ext folder).
So where should I copy my jar file on jenkins server?
Hi meldy ,
third-party jar should be under <ReadyAPI installation>\bin\ext as ReadyAPI team recommended. It looks like Java project with reference library.
Generally, I did not suggest you to put any jar in /ext since it's hard to manage them as well as version control if you have more node machine to run ReadyAPI test cases. Surely, there are workaround to deploy your jar to specified folder. i.e Ansible
If you run test cases through Jenkins, you'd better to install ReadAPI in execution machine and then mount them to Jenkins as "slave" (Secondary), one more suggestion, you can configure a library with groovy as a outside script library and bind to your ReadyAPI project, then you are able to manage them with version control.
some of custom package are required to put under /ext. i.e jdbc.jar, or your encapsulated jar (i.e login.jar, assertion.jar). However, you need to consider how to manage them in your ReadyAPI project and easily to push to other machine if any update.
Thanks
/Aaron