Cannot find project error when executing with Jenkins plugin


#1

Hi, I am getting Cannot find project error when executing with Jenkins plugin and git. The project is in the workspace, but Katalon says it can’t find it.
this is the command I used
-retry=0 -testSuitePath=“Test Suites/POCtest” -executionProfile=“default” -browserType=“Chrome”
Any suggestions on how to fix this is really appreciated.
thx


#2

Hi @ssomanandan,
Can you send or capture the console log for us to investigate?


#3

Hi @Thong Please see the console output below:
7999/bi/bi-automation-test.git +refs/heads/:refs/remotes/origin/ > git rev-parse refs/remotes/origin/KatalonPOC^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/KatalonPOC^{commit} # timeout=10 Checking out Revision 402aea408dc0cd5b6b109cab60bd0e14590fe72a (refs/remotes/origin/KatalonPOC) > git config core.sparsecheckout # timeout=10 > git checkout -f 402aea408dc0cd5b6b109cab60bd0e14590fe72a Commit message: “adding Katalon POC” > git rev-list --no-walk 402aea408dc0cd5b6b109cab60bd0e14590fe72a # timeout=10 [OBKatalonTestPOC] $ /bin/sh -xe /tmp/jenkins3850137629934139641.sh + ls -lhd /home/jenkins/workspace/OBKatalonTestPOC drwxr-xr-x 10 jenkins jenkins 242 Feb 25 21:29 /home/jenkins/workspace/OBKatalonTestPOC + ls -lh /home/jenkins/workspace/OBKatalonTestPOC total 12K drwxr-xr-x 3 jenkins jenkins 20 Feb 25 21:29 Include drwxr-xr-x 3 jenkins jenkins 49 Feb 25 21:29 Object Repository drwxr-xr-x 2 jenkins jenkins 26 Feb 25 21:29 Profiles drwxr-xr-x 3 jenkins jenkins 27 Feb 25 21:29 Scripts drwxr-xr-x 2 jenkins jenkins 30 Feb 25 21:29 Test Cases -rw-r–r-- 1 jenkins jenkins 913 Feb 25 21:29 bi-automation-test.prj drwxr-xr-x 7 jenkins jenkins 4.0K Feb 25 21:29 com-abc-automation-bi -rw-r–r-- 1 jenkins jenkins 106 Feb 25 21:29 console.properties drwxr-xr-x 3 jenkins jenkins 22 Feb 25 21:29 settings + pwd /home/jenkins/workspace/OBKatalonTestPOC + stat /home/jenkins/workspace/OBKatalonTestPOC/bi-automation-test.prj File: /home/jenkins/workspace/OBKatalonTestPOC/bi-automation-test.prj Size: 913 Blocks: 8 IO Block: 4096 regular file Device: 2eh/46d Inode: 92890690 Links: 1 Access: (0644/-rw-r–r--) Uid: (10000/ jenkins) Gid: (10000/ jenkins) Access: 2019-02-27 00:19:32.426929900 +0000 Modify: 2019-02-25 21:29:27.960178172 +0000 Change: 2019-02-25 21:29:27.960178172 +0000 Birth: - Katalon Studio package has been downloaded already. Using Katalon Studio at /var/jenkins_home/.katalon/5.10.1/Katalon_Studio_Linux_64-5.10.1 Execute [sh, -c, /var/jenkins_home/.katalon/5.10.1/Katalon_Studio_Linux_64-5.10.1/katalon -noSplash -runMode=console -projectPath="/home/jenkins/workspace/OBKatalonTestPOC/bi-automation-test.prj" -retry=0 -testSuitePath=“Test Suites/POCtest” -executionProfile=“default” -browserType=“Chrome” ] in /tmp/katalon-4880299767427773951 Opening project file: /home/jenkins/workspace/OBKatalonTestPOC/bi-automation-test.prj Invalid argument: Cannot find project ‘/home/jenkins/workspace/OBKatalonTestPOC/bi-automation-test.prj’. Build step ‘Execute Katalon Studio Tests’ marked build as failure Finished: FAILURE


#4

This one is without specifying project path :
> git rev-parse refs/remotes/origin/KatalonPOC^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/KatalonPOC^{commit} # timeout=10 Checking out Revision 402aea408dc0cd5b6b109cab60bd0e14590fe72a (refs/remotes/origin/KatalonPOC) > git config core.sparsecheckout # timeout=10 > git checkout -f 402aea408dc0cd5b6b109cab60bd0e14590fe72a Commit message: “adding Katalon POC” > git rev-list --no-walk 402aea408dc0cd5b6b109cab60bd0e14590fe72a # timeout=10 [OBKatalonTestPOC] $ /bin/sh -xe /tmp/jenkins3377978355610440042.sh + ls -lhd /home/jenkins/workspace/OBKatalonTestPOC drwxr-xr-x 10 jenkins jenkins 242 Feb 27 16:35 /home/jenkins/workspace/OBKatalonTestPOC + ls -lh /home/jenkins/workspace/OBKatalonTestPOC total 12K drwxr-xr-x 3 jenkins jenkins 20 Feb 27 16:35 Include drwxr-xr-x 3 jenkins jenkins 49 Feb 27 16:35 Object Repository drwxr-xr-x 2 jenkins jenkins 26 Feb 27 16:35 Profiles drwxr-xr-x 3 jenkins jenkins 27 Feb 27 16:35 Scripts drwxr-xr-x 2 jenkins jenkins 30 Feb 27 16:35 Test Cases -rw-r–r-- 1 jenkins jenkins 913 Feb 27 16:35 bi-automation-test.prj drwxr-xr-x 7 jenkins jenkins 4.0K Feb 27 16:35 com-abc-automation-bi -rw-r–r-- 1 jenkins jenkins 106 Feb 27 16:35 console.properties drwxr-xr-x 3 jenkins jenkins 22 Feb 27 16:35 settings + pwd /home/jenkins/workspace/OBKatalonTestPOC + stat /home/jenkins/workspace/OBKatalonTestPOC/bi-automation-test.prj File: /home/jenkins/workspace/OBKatalonTestPOC/bi-automation-test.prj Size: 913 Blocks: 8 IO Block: 4096 regular file Device: deh/222d Inode: 59289049 Links: 1 Access: (0644/-rw-r–r--) Uid: (10000/ jenkins) Gid: (10000/ jenkins) Access: 2019-02-27 16:35:14.538713610 +0000 Modify: 2019-02-27 16:35:14.538713610 +0000 Change: 2019-02-27 16:35:14.538713610 +0000 Birth: - Katalon Studio package has been downloaded already. Using Katalon Studio at /var/jenkins_home/.katalon/5.10.1/Katalon_Studio_Linux_64-5.10.1 Execute [sh, -c, /var/jenkins_home/.katalon/5.10.1/Katalon_Studio_Linux_64-5.10.1/katalon -noSplash -runMode=console -projectPath="/home/jenkins/workspace/OBKatalonTestPOC" -retry=0 -testSuitePath=“Test Suites/POCtest” -executionProfile=“default” -browserType=“Chrome” ] in /tmp/katalon-1579373172364309298 Opening project file: /home/jenkins/workspace/OBKatalonTestPOC Invalid argument: Cannot find project ‘/home/jenkins/workspace/OBKatalonTestPOC’. Build step ‘Execute Katalon Studio Tests’ marked build as failure Finished: FAILURE


#5

15%20AM


#6


#7

Sorry for this issue. Could you please help us su jenkins and run this command manually:

/var/jenkins_home/.katalon/5.10.1/Katalon_Studio_Linux_64-5.10.1/katalon -noSplash -runMode=console -projectPath="/home/jenkins/workspace/OBKatalonTestPOC" -retry=0 -testSuitePath=“Test Suites/POCtest” -executionProfile=“default” -browserType=“Chrome”

#8

Thank you @devalex88. Please see the error from running the command manually below:

jenkins@jenkins-jenkins-1:/$ /var/jenkins_home/.katalon/5.10.1/Katalon_Studio_Linux_64-5.10.1/katalon -noSplash -runMode=console -projectPath="/home/jenkins/workspace/OBKatalonTestPOC" -retry=0 -testSuitePath=“Test Suites/POCtest” -executionProfile=“default” -browserType=“Chrome”

Unable to init server: Could not connect: Connection refused

Katalon:

An error has occurred. See the log file

/var/jenkins_home/.katalon/5.10.1/Katalon_Studio_Linux_64-5.10.1/configuration/1551381747433.log.

The log is below:

!SESSION 2019-02-28 19:22:27.241 -----------------------------------------------

eclipse.buildId=unknown

java.version=1.8.0_171

java.vendor=Oracle Corporation

BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en

Framework arguments: -runMode=console -projectPath=/home/jenkins/workspace/OBKatalonTestPOC -retry=0 -testSuitePath=“Test Suites/POCtest” -executionProfile=“default” -browserType=“Chrome”

Command-line arguments: -os linux -ws gtk -arch x86_64 -data config -runMode=console -projectPath=/home/jenkins/workspace/OBKatalonTestPOC -retry=0 -testSuitePath=“Test Suites/POCtest” -executionProfile=“default” -browserType=“Chrome”

!ENTRY org.eclipse.osgi 4 0 2019-02-28 19:22:28.884

!MESSAGE Application error

!STACK 1

java.lang.IllegalStateException: The platform metadata area could not be written: /config/.metadata. By default the platform writes its content

under the current working directory when the platform is launched. Use the -data parameter to

specify a different content area for the platform.

    at org.eclipse.core.internal.runtime.DataArea.assertLocationInitialized(DataArea.java:61)

    at org.eclipse.core.internal.runtime.DataArea.getStateLocation(DataArea.java:129)

    at org.eclipse.core.internal.preferences.InstancePreferences.getBaseLocation(InstancePreferences.java:44)

    at org.eclipse.core.internal.preferences.InstancePreferences.initializeChildren(InstancePreferences.java:209)

    at org.eclipse.core.internal.preferences.InstancePreferences.<init>(InstancePreferences.java:59)

    at org.eclipse.core.internal.preferences.InstancePreferences.internalCreate(InstancePreferences.java:220)

    at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:352)

    at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:340)

    at org.eclipse.core.internal.preferences.PreferencesService.createNode(PreferencesService.java:391)

    at org.eclipse.core.internal.preferences.RootPreferences.getChild(RootPreferences.java:60)

    at org.eclipse.core.internal.preferences.RootPreferences.getNode(RootPreferences.java:95)

    at org.eclipse.core.internal.preferences.RootPreferences.node(RootPreferences.java:84)

    at org.eclipse.core.internal.preferences.AbstractScope.getNode(AbstractScope.java:38)

    at org.eclipse.core.runtime.preferences.InstanceScope.getNode(InstanceScope.java:77)

    at com.kms.katalon.preferences.internal.ScopedPreferenceStore.getStorePreferences(ScopedPreferenceStore.java:216)

    at com.kms.katalon.preferences.internal.ScopedPreferenceStore.<init>(ScopedPreferenceStore.java:117)

    at com.kms.katalon.preferences.internal.PreferenceStoreManager.initialPreferenceStore(PreferenceStoreManager.java:25)

    at com.kms.katalon.preferences.internal.PreferenceStoreManager.getPreferenceStore(PreferenceStoreManager.java:21)

    at com.kms.katalon.preferences.internal.PreferenceStoreManager.getPreferenceStore(PreferenceStoreManager.java:14)

    at com.kms.katalon.util.ApplicationSession.getStore(ApplicationSession.java:51)

    at com.kms.katalon.util.ApplicationSession.clean(ApplicationSession.java:17)

    at com.kms.katalon.core.application.Application.preRunInit(Application.java:84)

    at com.kms.katalon.core.application.Application.start(Application.java:52)

    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1519)

    at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

!ENTRY org.eclipse.ui 4 0 2019-02-28 19:22:28.963

!MESSAGE FrameworkEvent ERROR

!STACK 0

java.lang.IllegalStateException: BundleContext is no longer valid

    at org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:984)

    at org.eclipse.osgi.internal.framework.BundleContextImpl.removeBundleListener(BundleContextImpl.java:334)

    at org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(AbstractUIPlugin.java:596)

    at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:903)

    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

jenkins@jenkins-jenkins-1:~/.katalon/5.10.1/Katalon_Studio_Linux_64-5.10.1/configuration$


#9

@devalex88 or @Thong, any update on this?


#10

I’m sorry but could you please run the command again under a location different from your project directory?


#11

change the proxy setting and try “Use system proxy”