The first release of Katalon Studio's Jenkins Plugin

Hi everyone,

We have released the first version of Jenkins Plugin for Katalon Studio. This plugin can download, deploy, and execute Katalon Studio on Jenkins servers automatically. Together with Docker-based deployment, we hope this plugin will help you apply continuous integration with Katalon Studio easily.

This version does not support Jenkins Pipeline, if you need this function please use our Docker container.

We are looking forward to your feedback and suggestions.

Plugin site:

Jenkins wiki:

Tutorials:

6 Likes

not sure if i realy need it ā€¦ but looks cute.
i will give a try and come back with feedback.
nice job!

1 Like

Hi,

I have having trouble with this. See screenshots and errors below:

I removed -runMode and -projectPath from the statement that was previously working in Jenkins (execute shell)

When I try to run the script, I get the following and the test does not execute:

Started by user MThurman
Building in workspace /Users/johnthurman/.jenkins/workspace/Product Compare
Retrieve Katalon Studio version: 5.10.1, OS: mac
Number of releases: 111
Katalon Studio is hosted at https://github.com/katalon-studio/katalon-studio/releases/download/v5.10.1/Katalon.Studio.dmg.
Downloading Katalon Studio from https://github.com/katalon-studio/katalon-studio/releases/download/v5.10.1/Katalon.Studio.dmg. It may take a few minutes.
java.lang.IllegalStateException
at com.katalon.jenkins.plugin.KatalonUtils.downloadAndExtract(KatalonUtils.java:87)
at com.katalon.jenkins.plugin.KatalonUtils.getKatalonPackage(KatalonUtils.java:117)
at com.katalon.jenkins.plugin.ExecuteKatalonStudioTask.perform(ExecuteKatalonStudioTask.java:67)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
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:1810) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: SUCCESS

Any ideas?

Thanks!

Matt

Jenkins: 2.150.1
Katalon: 5.10.1
MacOS: Mojave

1 Like

Let me take a look tomorrow. Thank you for the report.

ok, thanks

Meet the same problem here. I am trying to running the code remotely on jenkins. I have put 5.10.1 and I still got the similar null pointer error

@Matt_Thurman @lexieqin Sorry for this issue. We forgot to mention in the documentation that support for macOS was not available in the first release. Version 1.0.3 with support for macOS is being published, and I will inform you when it is available.

@devalex88 Thanks!

@Matt_Thurman @lexieqin Support for macOS is now available. It only works with Katalon Studio version 5.10.1 or higher - if you want to use older versions let me know and I will upload them.

@devalex88 thanks! I will try it out later

@devalex88 Hi thanks for your fix, I saw that the studio tool get downloaded during build successfully. However there is another problem is that since we didnā€™t include the path in the command, there is default path for the plugin to find my project. However it didnā€™t work as expected. It cannot locate my project. Can you please help?

May I take a look at your build configuration?

Hello,

Do you have an update on the macOS tutorial? We are beginning our process of setting up our pipeline for a mobile application. The build server is on macOS.

Thank you,
Paul

Iā€™ve got an issue with the Jenkins plugin.

Jenkins build results in:
AppiumStartException: Appium directory is not set. Please set it in Window/Katalon Studio

Same happens when I run a Katalon test suite via cmd line (commands generated by Katalon).

When I execute the commands via cmd line from the Katalon install dir , tests do execute with success.
When executing from elsewhere (katalon home is on my PATH) I get the ā€œAppium dir not setā€ error.

More details: https://github.com/katalon-studio/katalon-plugin/issues/6

Note: Had 0 replies on this issue since 7 days on Github unfortunately!

Sorry for the late response @mdmmzm. Weā€™ve tried to address this issue in version 1.0.8. Please let me know if it works for you.

Thank you very much for the reply.

Iā€™ve installed 1.0.8, restarted Jenkins.
The problem still exist.

Log:

Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to start app at: ā€˜app-debug.apkā€™ (Root cause: com.kms.katalon.core.appium.exception.AppiumStartException: Appium directory is not set. Please set it in Window/Katalon Studio Preferences/Katalon/Mobile.)
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:36)
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:40)
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:23)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:51)
at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:40)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:53)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:74)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$startApplication.call(Unknown Source)
at zoekPersoon.run(zoekPersoon:18)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:319)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:298)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:290)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:224)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:129)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:112)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:81)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:149)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1554968506065.run(TempTestSuite1554968506065.groovy:36)

@ devalex88 Any chance this will be fixed soon (see my previous post)?

@devalex88

Any news on this error? I have the same problem with appium directory