Jenkins and Docker - Run Katalon - error: JVM terminated. Exit code=13

i´am try to run a docker from jenkins pipeline.
i´am facing with this error when run katalon command:

# Console Output:

  • /katalon/katalon -noSplash -runMode=console -consoleLog -projectPath=/data/jenkins/workspace/Chapter_Web_Dev_-Katalon_master -retry=0 -testSuitePath=Test Suites/Regression Tests/All Tests -executionProfile=default -browserType=Chrome
    An error has occurred. See the log file
    Katalon: Cannot open display:
    JVM terminated. Exit code=13

#Jenkins Workspace:

!SESSION Mon Feb 25 14:47:17 UTC 2019 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2019-02-25 14:47:17.549
!MESSAGE Exception launching the Eclipse Platform:
java.lang.NumberFormatException: null
at java.lang.Long.parseLong(
at java.lang.Long.parseLong(
at org.eclipse.equinox.launcher.Main.getLastKnownConfigIniBaseTimestamp(
at org.eclipse.equinox.launcher.Main.processConfiguration(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(

Any ideia how to solve this problem?

1 Like

Could you please share your Jenkinsfile?

Hello @antonio.jr.mestre ,

I need know how to trying start katalon? Are you trying in Openshift? Because in Openshift dont work, and im still waiting for solution in: Q: KatalonStudio docker On Openshift?

I used Jenkins for start Katalon (Not plugin), but Katalon in docker dont work so much. I use job in openshift for start remotely a pipeline in Jenkins and execute Katalon

node(‘zondev && linux && docker’) {
stage(‘Docker’) {
checkout scm
env.GIT_COMMIT = sh(returnStdout: true, script: “git rev-parse --verify HEAD”).trim()
env.GIT_COUNT = sh(returnStdout: true, script: “git rev-list HEAD --count”).trim()

    docker.image('katalonstudio/katalon-studio').inside('--entrypoint ""') { 
       sh '/katalon/katalon -noSplash -runMode=console  -consoleLog -projectPath=$(pwd) -retry=0 -testSuitePath="TestSuites/RegressionTests/AllTests" -executionProfile="default" -browserType="Chrome"' 



Katalon Studio needs GUI for running tests. Inside Docker image it uses Xvfb. Try the wrapper script as in this sample:

You can also wrap your own command using xvfb-run which was preinstalled.

Also if possible please consider using our plugin for Jenkins.


However I actually dont use docker with Katalon,
I used this form:

//Run Katalon Studio
stage (‘Run Katalon’){
steps {
//Go to Project dir
dir(’/mnt/gdmVolume/jonathan_respaldo_home/jobJenkins/’) {
sh “pwd”
script {
//Pause before start katalon, because need more time
echo “Waiting…”
//sh “sleep 15”
echo “Run Katalon Studio”
//Execute Katalon
sh ‘xvfb-run -s “-screen 0 1024x768x24” katalon_installer/katalon -runMode=console -consoleLog -projectPath="/mnt/gdmVolume/jonathan_respaldo_home/jobJenkins/GDM/GDM.prj" -statusDelay=30 -retry=0 -retryFailedTestCases=false -testSuitePath=“Test Suites/TS_GDM” -executionProfile=“default” -browserType=“Chrome (headless)”’

Hope help you

1 Like

@velascojonathanxd Please post your issue in a new topic.

Hi velascojonathanxd,
How do you run katalon through jenkin pipeline? Do we need to install katalon plugin or entire kaatlon on Jenkins?