I am currently trying to build a Katalon Keyword Plugin using Jenkins. I am constructing the plugin using gradle.
I can build the plugin on my personal computer just fine, but I cannot build it on the Jenkins server. The error that I get is:
16:30:46 * What went wrong: 16:30:46 Execution failed for task ‘:compileGroovy’. 16:30:46 > Could not resolve all files for configuration ‘:compileClasspath’. 16:30:46 > Cannot convert URL ‘C:/Location_of_Katalon/plugins/com.kms.katalon.core_188.8.131.52101290615.jar’ to a file.
There are several lines for all of the missing jar files.
I realize what the problem is. I have Katalon Studio installed on my personal computer, but the Jenkins server does not. Furthermore, the location of Katalon Studio is hard-coded in my computer so that gradle knows where the necessary jar files are for for compilation.
The question is, how would someone actually compile this on a Jenkins Job? There is no installation of Katalon Studio, and even if there was, you can’t “Open” software in an automated environment. I’m guessing there must be some kind of change to the build.gradle to get the dependencies I need, but I’m not sure what it is.