Author Topic: EA support of XML Export via Automation Interface triggerd by Jenkins  (Read 2022 times)

jannis94

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Hello together,
I want to create a XML Export (maybe) via the Automation Interface triggered by Jenkins to run some compliance checks of our software architecture.
On Windows I can do that already with my Python Script and:
import win32com.client
...
project.ExportPackageXMI(guid, XmiExportType, 1, -1, 1, 0, fName)

But for our Jenkins Automation we use Linux AWS build nodes and currently don't want to switch to Windows build notes.
So my question would be, if there is any possibility to trigger XML Exports without the need to have a Windows Python library (win32com) and maybe also EA Sparx installed. Maybe some kind of command line version, like tshark for Wireshark.

So far I think it is not possible right?
Under Linux I need to install Wine and have EA running there in an instance. But I was not able to access the COM Interface so far from an EA running inside Wine.

Thanks for your answers.


Greetings
Jannis

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13295
  • Karma: +557/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: EA support of XML Export via Automation Interface triggerd by Jenkins
« Reply #1 on: November 04, 2022, 05:22:54 am »
You'll need to install EA, or you can't use the API.

You don't need python per sé, you can connect to the API using most programming languages such as C#, VBScript, etc..

Geert

jannis94

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: EA support of XML Export via Automation Interface triggerd by Jenkins
« Reply #2 on: November 04, 2022, 07:51:10 pm »
Hi Geert, thanks for your reply.
Did you or someone else get the API running in a Linux environment with Wine? My idea was to access the API from a script (preferably Python) on the Linux machine, accessing the API through Wine.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: EA support of XML Export via Automation Interface triggerd by Jenkins
« Reply #3 on: November 04, 2022, 09:39:07 pm »
That's possible. wine and Python should work. I used the first in a test only (now Parallels) and the 2nd permanently.

q.

jannis94

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: EA support of XML Export via Automation Interface triggerd by Jenkins
« Reply #4 on: November 05, 2022, 01:35:28 am »
Okay I will give it a new try, once I have time for that. Thanks a lot.