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


#1

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
    /data/jenkins/workspace/Chapter_Web_Dev
    -_Katalon_master/1551095687126.log
    Katalon: Cannot open display:
    Katalon:
    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:
!STACK
java.lang.NumberFormatException: null
at java.lang.Long.parseLong(Long.java:552)
at java.lang.Long.parseLong(Long.java:631)
at org.eclipse.equinox.launcher.Main.getLastKnownConfigIniBaseTimestamp(Main.java:1974)
at org.eclipse.equinox.launcher.Main.processConfiguration(Main.java:1913)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

Any ideia how to solve this problem?


#2

Could you please share your Jenkinsfile?


#3

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


#4

node(‘zondev && linux && docker’) {
deleteDir();
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"' 
    }              
}

}

Blockquote


#6

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

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


#7

Also if possible please consider using our plugin for Jenkins.


#8

Hello,

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
Regards


#9

@velascojonathanxd Please post your issue in a new topic.