badexecutive.blogg.se

Docker nav extract software
Docker nav extract software












The alternative is to choose one of the hosted agents that Microsoft provide.

docker nav extract software

You’re in charge of the hardware, install agents and scale the performance as you see fit. You can install an agent on your own server somewhere and authenticate with a personal access token. In order to build your apps you need a build agent running somewhere which will listen for new jobs and run the scripts, create the Docker containers, run the tests or do whatever else you define in the build file. If you want an intro to building AL apps for Business Central you might want to check that out first. No doubt, given the rate of change in Business Central there will be a different/better way to do this by the time BC15/wave 2/Fall ’19/whatever the heck we call it is released – but this how we build against BC15 for now.įeel free to use anything you find helpful with my blessing…but not necessarily my support. For BC15 you’d change the script slightly to the below (different URL for Build Helper, the instance name is “BC” rather than “NAV”). The above is BC14 and assumes that you’ve got the navcontainerhelper module loaded (so you can use Publish-NavContainerApp). $BH.GetTests($TestSuite, $StartRange, $EndRange) $BH = New-WebServiceProxy (' -f (Get-NavContainerIpAddress $Container), $WSPort, $Company) -Credential $Credential Publish-NavContainerApp $Container -appfile $BHPath -sync -install $Credential = ::new($user, (ConvertTo-SecureString $Password -AsPlainText -Force))

docker nav extract software

Alternatively you could slip some PowerShell like the below into your pipeline and smoke it. Our PowerShell module has an Install-BuildHelper function to download and install it.

docker nav extract software

I use it all the time for running test from VS Code as well as in our build pipelines. One for BC15 and the other for BC14 and earlier. I’ve uploaded a couple of versions of the app to a GitHub repo here.

docker nav extract software

It helps us get the container ready for running Run-TestsInBCContainer (from the navcontainerhelper module). We use a separate “Build Helper” app that exposes a couple of web service methods to prep and clear a test suite. Turns out getting your test codeunits and methods populated into a test suite ready to run isn’t straightforward. (I take it you are writing automated tests?) If you’re interested in setting up a build pipeline to build apps for Business Central then you’re probably interested in running the automated tests as part of it.














Docker nav extract software