RevitTestFramework icon indicating copy to clipboard operation
RevitTestFramework copied to clipboard

Install Revit in Azure DevOps Pipeline

Open Dre-Tas opened this issue 5 years ago • 10 comments

Hi everyone!

I'm getting started with CI with Azure DevOps (previously VSTS) and I'm using RTF for the testing of Revit-specific methods (which btw is really cool and I thank you a lot for it!) I'm following the instructions here

I now got my Pipeline up and running, connected to BitBucket and every time I push code to my repo the build starts and I run non-Revit tests automatically. All good until here.

But then I tried to implement the Revit testing bit and it gets confusing: I guess the gist is somewhat clear, but I'm not too sure on how to run the Console app of RTF as it needs a version of Revit installed and I have no idea on how to install it on Azure! I checked the CI instructions in the link above and it is very generic, mentioning the installation of Revit, but not much more.

Has anyone done this before? Or any advice on how to do this?

Cheers!

Dre-Tas avatar Oct 09 '20 00:10 Dre-Tas

hi did you manage to figure out a solution for this ?

AmeerMansourBeca avatar Dec 08 '21 13:12 AmeerMansourBeca

Hi, you can create own VM and setup Revit, and setup self hosted BuildAgent on it.

dosymep avatar Jun 07 '22 08:06 dosymep

Hi, you can create own VM and setup Revit, and setup self hosted BuildAgent on it.

yes but how to make Revit run and gets the report back to Azure report or bitbucket ?

AmeerMansourBeca avatar Jun 08 '22 11:06 AmeerMansourBeca

@AmeerMansourBeca I'm about to start writing a paper + presentation for Autodesk University which is going to be at the end of September. I'll post it here when I have it ;) (If I forget by the end of the year, please remind me)

Dre-Tas avatar Jun 08 '22 14:06 Dre-Tas

i think i am the one who will forget about it by that time hhhhh 😄 can you give me a clue? i have VM and I was going to use azure self-agents i was thinking of creating a batch file on the host that opens revit and sets RevitTestFramework to auto and then uploading the log file somewhere but I feel it is too much and I think there is an easier alternative.

AmeerMansourBeca avatar Jun 08 '22 17:06 AmeerMansourBeca

@AmeerMansourBeca, I think console application writes log in console, but build agent read console stream output

dosymep avatar Jun 09 '22 13:06 dosymep

@dosymep so you mean if i wrote the log in the console in VM, it will be shown in the Azure pipeline as output?

AmeerMansourBeca avatar Jun 09 '22 13:06 AmeerMansourBeca

@AmeerMansourBeca, I think so

dosymep avatar Jun 09 '22 13:06 dosymep

@dosymep i will try that and i will let you know 😄 thanks

AmeerMansourBeca avatar Jun 09 '22 13:06 AmeerMansourBeca

@AmeerMansourBeca, maybe you should use this method

dosymep avatar Jun 09 '22 13:06 dosymep