Book a Demo

Author Topic: Automate EA via Jenkins Slave  (Read 8102 times)

Marc Dv.

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Automate EA via Jenkins Slave
« on: July 02, 2015, 09:28:06 pm »
Hi there!

We want to automate the making of baselines in our repository. Therefore we wrote a Java-Client using the Java Wrapper for the automation interface. The client is used in a batch script which worked perfectly if called manually by an user.
We setup a Windows 7 virtual machine and installed EA on it. Then we made this VM an Jenkins slave. The slave is installed as an Windows service which runs under an administrator account.
We run into an issue with the windows component service and we tried the tips found here
http://blog.lieberlieber.com/2009/09/16/running-enterprise-architect-on-a-server/
and here
http://catchsoftware.com/enterprisetester/Configuring%20EA%20for%20use%20with%20ET.pdf.

Nothing worked. We still get the fallowing error:
Code: [Select]
Exception in thread "main" java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.Exception: Failed to construct object. Error code: 0x80080005
      at org.sparx.Repository.comConstructor(Native Method)
      at org.sparx.Repository.<init>(Repository.java:170)
      at de.printus.eautomation.EaAutomat.main(EaAutomat.java:67)
      ... 5 more

Any suggestions?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Automate EA via Jenkins Slave
« Reply #1 on: July 02, 2015, 09:36:18 pm »
If "give up" is a suggestion you'd accept I'd give that :-/

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automate EA via Jenkins Slave
« Reply #2 on: July 02, 2015, 11:46:46 pm »
This is slowly becoming a FAQ.
I'm pretty sure in theory it is possible, as there are working examples out there, but unfortunately I don't have specifics.

I suggest you contact LieberLieber and ask for their help as they have an application that uses a webserver connecting to EA.

Geert

Marc Dv.

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Automate EA via Jenkins Slave
« Reply #3 on: July 06, 2015, 05:13:16 pm »
I was afraid the only suggestion would be "give up" or "get help you have to pay for". [smiley=cry.gif]

Pawel Jasinski

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Automate EA via Jenkins Slave
« Reply #4 on: August 12, 2015, 11:41:38 pm »
hi,
I am using JNPL dedicated jenkins slave to run integration testing involving EA. The JNPL agent allows for full GUI interaction (e.g. my scripts export diagrams from EA).
--pawel

survex

  • EA User
  • **
  • Posts: 76
  • Karma: +1/-1
    • View Profile
Re: Automate EA via Jenkins Slave
« Reply #5 on: August 13, 2015, 06:18:27 pm »
It's very sad that one needs to make so many efforts realizing such usefull thing. Developers have to make EA working as standalone server!!!

Pawel Zubkiewicz

  • EA User
  • **
  • Posts: 78
  • Karma: +2/-1
    • View Profile
    • zubkiewicz.com
Re: Automate EA via Jenkins Slave
« Reply #6 on: August 19, 2015, 10:43:49 pm »
Maybe try to investigate" Cloud Services" and "Scheduled Tasks": The cloud server includes optional support for running time based updates to data.

http://www.sparxsystems.com.au/enterprise-architect/cloud-services/cloud-services.html

I haven't used it myself by maybe it has what you need (do baselines automatically)
Enhanced Requirement Attributes Addin for Enterprise Architect (ERA Addin) - http://zubkiewicz.com/?p=239

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Automate EA via Jenkins Slave
« Reply #7 on: August 20, 2015, 08:24:03 am »
Quote
Maybe try to investigate" Cloud Services" and "Scheduled Tasks": The cloud server includes optional support for running time based updates to data.
It does, but it doesn't have a copy of the EA API. Currently the only scheduled task is updating time series charts.