kine / nvrappdevops Goto Github PK
View Code? Open in Web Editor NEWNavertica DevOps scripts for managing Microsoft Dynamics 365 Business Central Apps
Navertica DevOps scripts for managing Microsoft Dynamics 365 Business Central Apps
Hello,
On following line, $containerRulesetFile should be $rulesetfile as that is what is passed into Compile-AppWithArtifact by param.
I am getting the following error;
A parameter cannot be found that matches parameter name 'AllowPrerelease'.
Log;
2021-03-16T18:25:14.9025917Z ##[section]Starting: installbcmodules
2021-03-16T18:25:14.9156917Z ==============================================================================
2021-03-16T18:25:14.9157180Z Task : Business Central - Install powershell modules
2021-03-16T18:25:14.9157403Z Description : Install NVRAppDevOps and bccontainerhelper PowerShell modules
2021-03-16T18:25:14.9157574Z Version : 3.6.0
2021-03-16T18:25:14.9157702Z Author : Kine
2021-03-16T18:25:14.9157974Z Help : Will check if PowerShell modules NVRAppDevOps and bccontainerhelper are installed in latest version. If not, they will be installed or updated as needed.
2021-03-16T18:25:14.9158421Z ==============================================================================
2021-03-16T18:25:15.9441488Z Checking and Installing needed modules
2021-03-16T18:25:19.7477811Z ##[error]A parameter cannot be found that matches parameter name 'AllowPrerelease'.
2021-03-16T18:25:19.7722428Z ##[section]Finishing: installbcmodules
Yaml;
trigger:
pool: default
steps:
task: installbcmodules@3
inputs:
UninstallOldVersions: false
allowPreRelease: true
task: createbccontainer@5
inputs:
containername: 'bcserver'
artifactUrl: 'https://bcartifacts.azureedge.net/onprem/17.5.22499.22546/gb'
isolation: 'default'
ram: '4GB'
auth: 'NavUserPassword'
username: 'admin'
password: 'P@ssw0rd'
includeCSide: false
imagename:
useBestContainerOS: true
The navcontainerhelper function Compile-AppInNavContainer have support for running the CodeCop analyzer and storing the output with the compiler output.
[switch]$EnableCodeCop,
[ValidateSet('none','error','warning')]
[string]$FailOn = 'none'
Please enable this in Compile-ALProjectTree.ps1, so that we can get this information into DevOps. Very valuable for the code review.
Hey Kamil,
after running a build using your template the CALTestResults Page 130405 is available as a web service, because it has been added to the Web Services Page. I've created a bc container manually with "importtesttoolkit" and the page is not available as a web service page, it exists though.
Is there some magic happening to add the page to Web Services and can you point to me it? Else your Read-ALTestResult could not work, but it does ๐คทโโ๏ธ
Hello Kamil,
in Read-ALTestResult we're getting an exception since updating our containers to spring release.
Exception calling "ReadMultiple" with "3" argument(s): "The request failed with HTTP status 404: Not Found."
$_.Exception.StackTrace
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
This doesnt seem to be related to your module but it effects it.
Do you get the same error?
Thank you for your help.
There is missing process for pulling .app from package manager if it is missing during compile or install process.
Support function Install-ALNugetPackage already exists, but is not used.
Possibility to define own process for downloading missing app in settings.ps1 will be welcome - variable AppDownloadScript is prepared in the config for this.
Hello Kamil,
is there a reason why you use $Build in Init-ALEnviroment
NVRAppDevOps/Init-ALEnvironment.ps1
Line 61 in 87e34a3
instead of $env:TF_Build like you do in Compile-ALProjectTree?
NVRAppDevOps/Compile-ALProjectTree.ps1
Line 67 in 87e34a3
Greetings,
Maurice
After PR #23 you can get warning like
Get-ContainerImageCurrentness -Image bcinsider.azurecr.io/bconprem:cz
WARNING: The image mcr.microsoft.com/bconprem:cz could not be found locally
The local version of the image mcr.microsoft.com/bconprem:cz is NOT the latest version
because the function Get-ContainerImageCurrentness is taking the Image but is not parsing the registry correctly from the Image.
When creating new container by using Init-ALEnvironment or through BCTask createbccontainer from https://marketplace.visualstudio.com/items?itemName=Kine.naverticaltasks (which is internally calling this function).
Reason was implicit using of '-e CustomNavSettings=ServicesUseNTLMAuthentication=true' parameter for the new-bccontainer cmdlet which makes the endpoint unusable.
Solution:
This implicit parameter was removed. If needed, optionalParameters could be used to set it again.
Connected to #1a624b5905f7ae85ea45a0439c170250069c2565
I am a new user. Cloned today and get the following errors;
PS C:\Users\admincwatson\NVRAppDevOps\MSDyn365BC_AppTemplate> Read-ALConfiguration -path . | Init-ALEnvironment
Running .\Scripts\Settings.ps1 ...
Build is
Cannot index into a null array.
At C:\Users\admincwatson\Documents\WindowsPowerShell\Modules\NVRAppDevOps\0.9.93\Get-ContainerImageCurrentness.ps1:23 char:9
$result = $matches.Matches.Groups[2].Value.Split(':');
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cannot index into a null array.
At C:\Users\admincwatson\Documents\WindowsPowerShell\Modules\NVRAppDevOps\0.9.93\Get-ContainerImageCurrentness.ps1:24 char:9
$Registry = $matches.Matches.Groups[1].Value.Split('/')[0];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cannot index into a null array.
At C:\Users\admincwatson\Documents\WindowsPowerShell\Modules\NVRAppDevOps\0.9.93\Get-ContainerImageCurrentness.ps1:25 char:9
$ImageName = $result[0];
~~~~~~~~~~~~~~~~~~~~~~~
Cannot index into a null array.
At C:\Users\admincwatson\Documents\WindowsPowerShell\Modules\NVRAppDevOps\0.9.93\Get-ContainerImageCurrentness.ps1:26 char:9
$ImageTag = $result[1];
~~~~~~~~~~~~~~~~~~~~~~
Cannot read data about the image from server, rather pulling
Hi!
Could you maybe add a license to this project?
So far the path to the settings file/script is hardcoded in the PowerShell function. Wouldn't it be much better to parameterize this path as well or to configure it somewhere? So it would be much easier to use it for other DevOps scenarios without adjustments.
NVRAppDevOps/Read-ALConfiguration.ps1
Lines 17 to 21 in 18d4b74
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.