I am trying to use the katalon plugin in jenkins. But every time I run a build I get errors. These error seem like katalon is trying to build itself on the master server, not on the designated build agent.
Could you please share the configuration? Did Jenkins have permissions to open /etc/katalon/Katalon_Studio_Linux_64-5.10.1/configuration/resources/drivers? This part is always executed by Katalon Studio, therefore Katalon Studio should be available on your nodes already.
/etc/katalon/Katalon_Studio_Linux_64-5.10.1/configuration/resources/drivers is owned by root which on the slave/agent nodes is the user that is running the agent. Katalon was manually downloaded and extracted on the two slaves. and I can run it manually via ssh. Also if i add a Execute Shell step and paste in the katalon command
This also runs fine.
So it only fails when using the plugin, Which cannot find the path to the drivers, even though they exist on the build agents.
Further test show that if i create the path
/etc/katalon/Katalon_Studio_Linux_64-5.10.1/configuration/resources/drivers
on the Jenkins master node, and place a dummy empty file named chromedriver with execute permissionsm the build will continue passed this error.
So the plugin is clearly trying to find the drives on the jenkins master node not on the slave where it should be building.
We are still running into the same issue with the latest plugin-1.0.11v
(Jenkins version used : [Jenkins ver. 2.176.3]
Master and slave are both windows machines.
Please see the error log below:
Using Katalon Studio at D:\Katalon_Studio_Windows_64_6.3.3
Making driver executables…
Drivers folder at: D:\Katalon_Studio_Windows_64_6.3.3\configuration\resources\drivers
java.nio.file.NoSuchFileException: D:\Katalon_Studio_Windows_64_6.3.3\configuration\resources\drivers
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(Unknown Source)
at sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.readAttributes(Unknown Source)
at java.nio.file.Files.readAttributes(Unknown Source)
at java.nio.file.FileTreeWalker.getAttributes(Unknown Source)
at java.nio.file.FileTreeWalker.visit(Unknown Source)
at java.nio.file.FileTreeWalker.walk(Unknown Source)
at java.nio.file.FileTreeIterator.(Unknown Source)
at java.nio.file.Files.walk(Unknown Source)
at java.nio.file.Files.walk(Unknown Source)
at com.katalon.utils.KatalonUtils.makeDriversExecutable(KatalonUtils.java:133)
at com.katalon.utils.KatalonUtils.executeKatalon(KatalonUtils.java:104)
at com.katalon.jenkins.plugin.ExecuteKatalonStudioUtils$1.call(ExecuteKatalonStudioUtils.java:52)
at com.katalon.jenkins.plugin.ExecuteKatalonStudioUtils$1.call(ExecuteKatalonStudioUtils.java:34)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:336)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1$1.run(Engine.java:94)
at java.lang.Thread.run(Unknown Source)
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from AMPTMPTTLMPT08.au.amp.local/10.161.173.115:49207
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1743)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:389)
at hudson.remoting.Channel.call(Channel.java:957)
at com.katalon.jenkins.plugin.ExecuteKatalonStudioUtils.executeKatalon(ExecuteKatalonStudioUtils.java:34)
at com.katalon.jenkins.plugin.ExecuteKatalonStudioTask.perform(ExecuteKatalonStudioTask.java:97)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1818)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Build step ‘Execute Katalon Studio Tests’ marked build as failure
Finished: FAILURE