Katalon TestCloud Jenkins Pipeline Script Example

@ha.tpham EDIT: I created a new topic: Katalon Jenkins / TestCloud - Unable to Execute TestCloud Using Jenkins Plugin

I just tried the instructions described in the Execute a Katalon TestOps Plan on Jenkins guide and the Job failed.

I have the following questions:

  • -testcloudEnvironmentId=“87” - What is it and do I need it for TestCloud?
  • Why do I get an error stating I have no TestCloud licenses? My organization has 3 x TestCloud Licenses

I get the following Jenkins console log error:

Building on the built-in node in workspace /opt/bitnami/jenkins/jenkins_home/workspace/TESTOPS
[2023-06-13T12:30:17.146] Katalon Studio package has been downloaded already.
[2023-06-13T12:30:17.146] Using Katalon Studio at /opt/bitnami/jenkins/jenkins_home/.katalon/8.6.5/Katalon_Studio_Engine_Linux_64-8.6.5
[2023-06-13T12:30:17.146] Making driver executables...
[2023-06-13T12:30:17.146] Drivers folder at: /opt/bitnami/jenkins/jenkins_home/.katalon/8.6.5/Katalon_Studio_Engine_Linux_64-8.6.5/configuration/resources/drivers
[2023-06-13T12:30:17.146] Set msedgedriver as executable !
[2023-06-13T12:30:17.146] Set geckodriver as executable !
[2023-06-13T12:30:17.146] Set chromedriver as executable !
[2023-06-13T12:30:17.147] Execute [sh, -c, /opt/bitnami/jenkins/jenkins_home/.katalon/8.6.5/Katalon_Studio_Engine_Linux_64-8.6.5/katalonc -noSplash  -runMode=console  -projectPath=/tmp/project -retry=0 -statusDelay=15 -testSuitePath="Path/to/Test Suites" -browserType="TestCloud" -testcloudTunnel="false" -apikey=<secret-api-key> ] in /tmp/katalon-7722351561481957628
[2023-06-13T12:30:19.937] Katalon workspace folder is set to default location: /tmp/session-65fdedfe
[2023-06-13T12:30:20.194] Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
[2023-06-13T12:30:20.195] 138 org.codehaus.groovy_2.4.20.v202009301404-e2006-RELEASE ACTIVE
[2023-06-13T12:30:20.780] Activating...
[2023-06-13T12:30:20.787] Start getting machine ID on Linux
[2023-06-13T12:30:20.828] End getting machine ID on Linux 348d44d16b7a479be8be69e02ad87fefe
[2023-06-13T12:30:20.828] Start appending additional signatures
[2023-06-13T12:30:20.830] hardwareSerialNumber 
[2023-06-13T12:30:20.831] osDependentUsername jenkins
[2023-06-13T12:30:20.831] End appending additional signatures 348d44d16b7a479be8be69e02ad87fefe__jenkins
[2023-06-13T12:30:20.839] Start activating offline...
[2023-06-13T12:30:20.841] Search for valid offline licenses in folder: /opt/bitnami/jenkins/jenkins_home/.katalon/license
[2023-06-13T12:30:20.849] The number of valid offline licenses: 0
[2023-06-13T12:30:22.245] Start activating online...
[2023-06-13T12:30:27.280] Activated successfully with Katalon Runtime Engine license. 
[2023-06-13T12:30:27.281] Failed to activate with TestCloud license. null
[2023-06-13T12:30:27.295] Cannot execute this test suite. There is no TestCloud license available.
[2023-06-13T12:30:27.297] All launchers terminated
[2023-06-13T12:30:27.527] Finished executing sh -c /opt/bitnami/jenkins/jenkins_home/.katalon/8.6.5/Katalon_Studio_Engine_Linux_64-8.6.5/katalonc -noSplash  -runMode=console  -projectPath=/tmp/project -retry=0 -statusDelay=15 -testSuitePath="Path/to/Test Suites" -browserType="TestCloud" -testcloudTunnel="false" -apikey=<secret-api-key> . Exit code: 3.
Build step 'Execute Katalon Studio Tests' marked build as failure