Hi all,
I've been working several days trying to solve this issue, and I'm posting the error here, maybe someone had the same issue and can help.
Trying to run Katalon from Jenkins JX (Jenkins ver. 2.176.4) with the latest Katalon plugin (1.0.21). I'm trying to run 5.10.x and 6.3.x, and neither of both worked (having the same behavior / error).
Moreover, jenkins user has full permissions over project folder and project build.
Already reviewed topic in: http://forum.katalon.com/t/jenkins-and-katalon-issue-sh-1-katalon-not-found/22242
This may also help (Jenkins System information):
os.arch - amd64
os.name - Linux
os.version - 4.14.106-97.85.amzn2.x86_64
The error shown in Jenkins console is the following.
Started by user Gustavo Pozzi
Running as SYSTEM
Agent aws-cdk-8fwmz is provisioned from template Kubernetes Pod Template
apiVersion: āv1ā
kind: āPodā
metadata:
annotations: {}
labels:
jenkins: āslaveā
jenkins/jenkins-aws-cdk: ātrueā
name: āaws-cdk-8fwmzā
spec:
containers:
- args:
- ā********ā
- āaws-cdk-8fwmzā
env: - name: āJENKINS_SECRETā
value: ā********ā - name: āJENKINS_TUNNELā
value: ājenkins-agent:50000ā - name: āGIT_AUTHOR_EMAILā
value: ājenkins-x@googlegroups.comā - name: āGIT_COMMITTER_NAMEā
value: ājenkins-x-botā - name: āGIT_AUTHOR_NAMEā
value: ājenkins-x-botā - name: āJENKINS_AGENT_WORKDIRā
value: ā/home/jenkins/agentā - name: āXDG_CONFIG_HOMEā
value: ā/home/jenkinsā - name: āDOCKER_CONFIGā
value: ā/home/jenkins/.docker/ā - name: āJENKINS_AGENT_NAMEā
value: āaws-cdk-8fwmzā - name: āGIT_COMMITTER_EMAILā
value: ājenkins-x@googlegroups.comā - name: ā_JAVA_OPTIONSā
value: ā-XX:+UnlockExperimentalVMOptions -Dsun.zip.disableMemoryMapping=true
\ -XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=4
\ -XX:AdaptiveSizePolicyWeight=90 -Xms10m -Xmx512mā - name: āJENKINS_NAMEā
value: āaws-cdk-8fwmzā - name: āJENKINS_URLā
value: āhttp://jenkins:8080ā
image: ājenkinsci/jnlp-slave:3.26-1-alpineā
imagePullPolicy: āIfNotPresentā
name: ājnlpā
resources:
limits: {}
requests:
memory: ā128Miā
cpu: ā100mā
securityContext:
privileged: false
tty: false
volumeMounts: - mountPath: ā/home/jenkins/.dockerā
name: āvolume-2ā
readOnly: false - mountPath: ā/root/.m2ā
name: āvolume-1ā
readOnly: false - mountPath: ā/var/run/docker.sockā
name: āvolume-0ā
readOnly: false - mountPath: ā/home/jenkins/.gnupgā
name: āvolume-3ā
readOnly: false - mountPath: ā/home/jenkins/agentā
name: āworkspace-volumeā
readOnly: false
workingDir: ā/home/jenkins/agentā
- args:
- ācatā
command: - ā/bin/shā
- ā-cā
env: - name: āDOCKER_CONFIGā
value: ā/home/jenkins/.docker/ā - name: āGIT_AUTHOR_EMAILā
value: ājenkins-x@googlegroups.comā - name: āGIT_COMMITTER_EMAILā
value: ājenkins-x@googlegroups.comā - name: āGIT_COMMITTER_NAMEā
value: ājenkins-x-botā - name: ā_JAVA_OPTIONSā
value: ā-XX:+UnlockExperimentalVMOptions -Dsun.zip.disableMemoryMapping=true
\ -XX:+UseParallelGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -XX:GCTimeRatio=4
\ -XX:AdaptiveSizePolicyWeight=90 -Xms10m -Xmx512mā - name: āGIT_AUTHOR_NAMEā
value: ājenkins-x-botā - name: āXDG_CONFIG_HOMEā
value: ā/home/jenkinsā - name: āJENKINS_URLā
value: āhttp://jenkins:8080ā
image: āGoogle Cloud consoleā
imagePullPolicy: āIfNotPresentā
name: āaws-cdkā
resources:
limits:
memory: ā2048Miā
cpu: ā2ā
requests:
memory: ā512Miā
cpu: ā400mā
securityContext:
privileged: true
tty: true
volumeMounts: - mountPath: ā/home/jenkins/.dockerā
name: āvolume-2ā
readOnly: false - mountPath: ā/root/.m2ā
name: āvolume-1ā
readOnly: false - mountPath: ā/var/run/docker.sockā
name: āvolume-0ā
readOnly: false - mountPath: ā/home/jenkins/.gnupgā
name: āvolume-3ā
readOnly: false - mountPath: ā/home/jenkins/agentā
name: āworkspace-volumeā
readOnly: false
workingDir: ā/home/jenkins/agentā
nodeSelector: {}
restartPolicy: āNeverā
serviceAccount: ājenkinsā
volumes:
- ācatā
- hostPath:
path: ā/var/run/docker.sockā
name: āvolume-0ā - name: āvolume-2ā
secret:
secretName: ājenkins-docker-cfgā - name: āvolume-1ā
secret:
secretName: ājenkins-maven-settingsā - emptyDir:
medium: āā
name: āworkspace-volumeā - name: āvolume-3ā
secret:
secretName: ājenkins-release-gpgā
Building remotely on aws-cdk-8fwmz (jenkins-aws-cdk) in workspace /home/jenkins/agent/workspace/KatalonTests
using credential jx-pipeline-git-github-github--com
Cloning the remote Git repository
Cloning repository https://github..com/AI/qa.git
git init /home/jenkins/agent/workspace/KatalonTests # timeout=10
Fetching upstream changes from https://github..com/AI/qa.git
git --version # timeout=10
using GIT_ASKPASS to set credentials API Token for acccessing https://github..com Git service inside pipelines
git fetch --tags --progress ā https://github..com/AI/qa.git +refs/heads/:refs/remotes/origin/
git config remote.origin.url https://github..com/AI/qa.git # timeout=10
git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
git config remote.origin.url https://github..com/AI/qa.git # timeout=10
Fetching upstream changes from https://github..com/AI/qa.git
using GIT_ASKPASS to set credentials API Token for acccessing https://github..com Git service inside pipelines
git fetch --tags --progress ā https://github..com/AI/qa.git +refs/heads/:refs/remotes/origin/
git rev-parse refs/remotes/origin/master^{commit} # timeout=10
git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision (refs/remotes/origin/master)
git config core.sparsecheckout # timeout=10
git checkout -f
Commit message: āMerge pull request #62 from AI/gpozzi/sprint22-enhancementsā
git rev-list --no-walk # timeout=10
[2019-12-31T01:00:39.106] Retrieve Katalon Studio version: 6.3.3, OS: linux
[2019-12-31T01:00:39.908] Number of releases: 245
[2019-12-31T01:00:39.908] Katalon Studio is hosted at https://github.com/katalon-studio/katalon-studio/releases/download/v6.3.3/Katalon_Studio_Linux_64-6.3.3.tar.gz.
[2019-12-31T01:00:39.909] Downloading Katalon Studio from https://github.com/katalon-studio/katalon-studio/releases/download/v6.3.3/Katalon_Studio_Linux_64-6.3.3.tar.gz. It may take a few minutes.
[2019-12-31T01:00:49.254] Extract /tmp/Katalon-2880516187703948030 to /home/jenkins/.katalon/6.3.3
[2019-12-31T01:00:49.255] Execute [sh, -c, tar -xzf ā/tmp/Katalon-2880516187703948030ā] in /home/jenkins/.katalon/6.3.3
[2019-12-31T01:00:52.952] Katalon Studio has been installed successfully.
[2019-12-31T01:00:52.958] Using Katalon Studio at /home/jenkins/.katalon/6.3.3/Katalon_Studio_Linux_64-6.3.3
[2019-12-31T01:00:52.958] Making driver executablesā¦
[2019-12-31T01:00:52.958] Drivers folder at: /home/jenkins/.katalon/6.3.3/Katalon_Studio_Linux_64-6.3.3/configuration/resources/drivers
[2019-12-31T01:00:52.962] Set chromedriver as executable !
[2019-12-31T01:00:52.962] Set geckodriver as executable !
[2019-12-31T01:00:52.964] Execute [sh, -c, /home/jenkins/.katalon/6.3.3/Katalon_Studio_Linux_64-6.3.3/katalon -noSplash -runMode=console -retry=0 -testSuitePath=āTest Suites/runJobsTcā -executionProfile=āqaā -browserType=āWeb Serviceā -projectPath=ā/home/jenkins/agent/workspace/KatalonTests/qa/katalon/Project.prjā ] in /tmp/katalon-8238143155864695992
[2019-12-31T01:00:52.965] sh: /home/jenkins/.katalon/6.3.3/Katalon_Studio_Linux_64-6.3.3/katalon: not found
Build step āExecute Katalon Studio Testsā marked build as failure
Finished: FAILURE
Your help is appreciated, Thanks in advance,
Gustavo