Book a Demo

Author Topic: Sparx EA and Microsoft Team Foundation Version Control  (Read 4036 times)

AndrewDavies

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Sparx EA and Microsoft Team Foundation Version Control
« on: November 16, 2019, 12:37:28 am »
Does anyone know if EA works with the Azure TFVC cloud offering? All of the documentation around the Microsoft offering seems to point towards TFS as hosted on-premises.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Sparx EA and Microsoft Team Foundation Version Control
« Reply #1 on: November 16, 2019, 01:00:28 am »
Yes, it works

We are testing this with version 15.0.1513 (which runs on an Azure virtual Machine via Remote Desktop)

The only issue currently remaining is that EA won't show the authentication popup.
If you first perform a "tf get" on the command line, and you log in, then EA will happily use Azure Devops for version control.
That is, until your credentials need to be refreshed, and then you'll have to do the command line thing again.

Our current workaround is to include an EA-Matic script in all of our models that automatically executes the "tf get" on File_Open.
This is sort of OK, except that, in case the credentials had been expired, you first get the error mesages from EA trying to access TFS, and only after that the EA-Matic script gets executed that shows the TFS login window.
So when this happens we have to remember to reload the model.

I reported this problem to Sparx, and they have been working on fixing this. (this was two weeks ago)

The EA-Matic script we use is the following:

Code: [Select]
'[path=\Projects\EA-Matic Scripts]
'[group=EA-Matic]

!INC Local Scripts.EAConstants-VBScript

'EA-Matic

function EA_FileOpen()
Dim objShell
Set objShell = CreateObject ("WScript.shell")
objShell.run "cmd /c CD ""C:\Program Files (x86)\Microsoft Visual Studio\2019\TeamExplorer\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\"" & tf get"
end function

Geert

AndrewDavies

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Sparx EA and Microsoft Team Foundation Version Control
« Reply #2 on: January 07, 2020, 11:14:42 pm »
That's very helpful - thanks Geert. I have now got this all set up with a proof of concept, successfully broken it by getting a colleague without any version control to check a package out (which left the repository in an inconsistent state), and repaired it with the help of a script sent by Sparx. It all looks good.