Hello all,
I am pretty new to EA automation and having trouble running a jenkins job which executes a python script that connects to ea model file. Script runs fine when executed locally on the jenkins node but throw the following error when executed via jenkins.
Traceback (most recent call last):
File "myscript.py", line 28, in <module>
ea_repository.OpenFile2("path_to_ea_file.qea", args.ea_user, "")
File "<COMObject <unknown>>", line 2, in OpenFile2
pywintypes.com_error: (-2147023170, 'The remote procedure call failed.', None, None)
Folllowing is relevant part of the script:
import win32com.client
try:
eaApp =win32com.client.Dispatch("EA.App")
except:
sys.stderr.write( "Unable to connect to EA\n" )
exit()
ea_repository = eaApp.Repository
ea_repository.OpenFile2("path_to_ea_file.qea", args.ea_user, "")
I assume its more of a Jenkins issue then EA but i couldnt find any thing that helped me so far. Thanks in advance