Closed DanielGoehler closed 4 years ago
Hm, I never did this, but try to set installaltesttool to false.. and install by appname..
- task: ALOpsAppPublish@1
displayName: 'ALOps - Install AL TestTool'
inputs:
usedocker: true
installaltesttool: false
skip_verification: true
install_al_app_names: 'Test Runner'
installaltesttool = false doesn't work. The dependency app will be published, but not Test Runner. See output below. What influences this from the output above?
*** Application requested for installation:
* Any
* Library Assert
* System Application Test
* System Application Test Library
* Test Runner
* Tests-TestLibraries
Output
##[section]Starting: ALOps - Install AL TestTool
==============================================================================
Task : ALOps App Publish
Description : Publish AL Extension to Business Central
Version : 1.434.1680
Author : Hodor
Help : Publish Business Central extension to service tier.
==============================================================================
*** Importing required PS-Functions
- Use Docker = True
- Artifact Path =
- App Filter = *.app
- Process Type = Build
- Skip Verification = True
- Force Sync = False
*** Importing required PS-Functions
*** Initiate Docker Session
*** Set Docker Container ErrorActionPreference = Stop
*** Install AL TestTool: False
*** Working folder: C:\agent\_work\26\s
*** Artifact folder: C:\agent\_work\26\a
*** Pipeline workspace: C:\agent\_work\26
***
*** Copy Artifacts to Docker Container: 9b9260028e78f45f49c9cd52edc1ec1a21eb19e9c55c13e3986d659fe845aaa4
*** Docker Artifacts Folder: c:\Run\DevOps\Artifacts
*** Dynamic resolve App file.
*** Scanning [System.DefaultWorkingDirectory].
*** Scanning [System.ArtifactsDirectory].
*** Scanning [Pipeline.Workspace].
*** Multiple App files found with filter [*.app].
* C:\agent\_work\26\s\MainApp\.dependencies\Some Company_Comsol Atlas_16.4.4.0.app
* C:\agent\_work\26\s\MainApp\.dependencies\Some Company_Some Solution_16.1.9.3.app
*** Resolved App File: [Some Company_Some Solution_16.1.9.3.app].
*** Copy Artifact: [C:\agent\_work\26\s\MainApp\.dependencies\Some Company_Some Solution_16.1.9.3.app]
*** Import NAV/BC Management DLL's
*** Loading assemblies for ServiceTier [BC].
*** Loading assemblies from: [C:\program files\microsoft dynamics nav\160\service]
*** Selected module: [C:\program files\microsoft dynamics nav\160\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
*** Loading module: [C:\program files\microsoft dynamics nav\160\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
*** Selected module: [C:\program files\microsoft dynamics nav\160\service\Microsoft.Dynamics.Nav.Management.dll]
*** Loading module: [C:\program files\microsoft dynamics nav\160\service\Microsoft.Dynamics.Nav.Management.dll]
**************************************
* App File = [c:\Run\DevOps\Artifacts\Some Company_Some Solution_16.1.9.3.app]
* App.ID = b44bad3e-e88d-4b5d-9813-8d1a96b9e34b
* App.Name = Some Solution
* App.Publisher = Some Company
* App.Version = 16.1.9.3
=> Publishing App 'Some Solution v16.1.9.3'
*** Get Tenants
PSComputerName : 9b9260028e78f45f49c9cd52edc1ec1a21eb19e9c55c13e3986d659fe845aaa4
RunspaceId : 9a2773b9-b9f1-496c-bae6-6aeb37e5c311
ServerInstance : MicrosoftDynamicsNavServer$BC
DatabaseName : CRONUS
DatabaseServer : localhost\SQLEXPRESS
DatabaseUserName :
State : Operational
DetailedState :
DeletionState : Not deleted
IsInExclusiveAccessMode : False
TenantDataVersion : 16.4.15445.0
Compression : Unspecified
Id : default
AlternateId : {}
AllowAppDatabaseWrite : True
NasServicesEnabled : False
RunNasWithAdminRights : False
EncryptionProvider : LocalKeyFile
AzureKeyVaultSettings :
DefaultCompany :
DefaultTimeZone : UTC
ExchangeAuthenticationMetadataLocation : https://outlook.office365.com/
AadTenantId : common
ApplicationInsightsKey :
DisplayName :
EnvironmentName :
EnvironmentType : Production
ServerInstance : MicrosoftDynamicsNavServer$BC
ExtensionDataVersion :
IsInstalled : False
SyncState : NotSynced
NeedsUpgrade : False
IsPublished : True
PSComputerName : 9b9260028e78f45f49c9cd52edc1ec1a21eb19e9c55c13e3986d659fe845aaa4
RunspaceId : 9a2773b9-b9f1-496c-bae6-6aeb37e5c311
Brief : Some Solution
Description : Sanctionlist Screening for Business Central
CompatibilityId : 0.0.0.0
PrivacyStatement : https://www.contoso.com/datenschutz
Eula : https://static.contoso.com/somesolution/comsol_software_license_term.html
Help : https://static.contoso.com/somesolution/docu
Url : https://www.contoso.com/somesolution
Logo : /logo/somesolution_113x113.png
DeveloperTenantId :
ScreenShots : {}
Dependencies : {Application, Microsoft, 16.0.0.0, False}
Capabilities : {}
PackageId : 986a1641-d064-47e9-bffa-6cf68a495970
PublisherAzureActiveDirectoryTenantId :
AppId : b44bad3e-e88d-4b5d-9813-8d1a96b9e34b
Name : Some Solution
Publisher : Some Company
Version : 16.1.9.3
ExtensionType : ModernDev
Scope : Global
Tenant :
*** Sync Tenant default
*** Sync App [Some Solution] on tenant [default]
*** Install App [Some Solution] on tenant [default]
**************************************
ComputerType : Container
ComputerName : 9b9260028e78f45f49c9cd52edc1ec1a21eb19e9c55c13e3986d659fe845aaa4
ContainerId : 9b9260028e78f45f49c9cd52edc1ec1a21eb19e9c55c13e3986d659fe845aaa4
VMName :
VMId :
ConfigurationName :
InstanceId : 9a2773b9-b9f1-496c-bae6-6aeb37e5c311
Id : 1
Name : WinRM1
Availability : Available
ApplicationPrivateData : {DebugMode, DebugStop, UnhandledBreakpointMode, PSVersionTable...}
Runspace : System.Management.Automation.RemoteRunspace
State : Opened
IdleTimeout : -1
OutputBufferingMode :
DisconnectedOn :
ExpiresOn :
*** Disconnect Docker session.
*** Remove Docker session.
*** Docker session removed.
*** AL-Extension Published to ALOps Repository
*** Cleanup VSTS Environment: True
##[section]Async Command Start: Add Build Tag
Build '1725' has following tags now: App.Some Solution.16.1.9.3, BC.Platform.16.0.14648.15420, BC.Version.16.4.14693.15445, myimage-onprem-16.4.14693.15445-de-10.0.17763.1457-ltsc2019
##[section]Async Command End: Add Build Tag
##[section]Finishing: ALOps - Install AL TestTool
can I ask what the intention is of all this? What are you trying to achieve?
Sure. I have only a few tests, which has no dependencies to the Microsoft Test Libraries and I like to save some time, because I only need the AL Test Suite.
It's ALOps that add these automatically, just to help people that might forget to add these necessary apps. I'm afraid there is no way around this (else we would break other tests if we would remove it).
If you want to gain time - you can create your own Docker image now with the tests included. That will save you a lot of time.. .
Yeah, that's right.
We already have, even at the beginning, many different BC versions and two build agent VMs, and plan to increase this number due to the increased build pipeline runs. At the moment we have not yet learned about centralized container management.
So I'm taking a simple way out and adding the Test Runner app to the git Repo as a dependency.
Describe the bug _install_al_appnames seems to be ignored by ALOpsAppPublish while AL Test Tool installation.
the used yaml
the output
Expected behavior In this case only install Test Runner