Giter VIP home page Giter VIP logo

nvrappdevops's People

Contributors

abychyk avatar andreasblueher avatar ernestasjuska avatar kfc-relateit avatar kfuglsang avatar kine avatar koubek avatar m4fin avatar mjecloud avatar sven-niehus avatar tino-teuber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nvrappdevops's Issues

Incorrect Ruleset Used in Compile with Artifact

Hello,

On following line, $containerRulesetFile should be $rulesetfile as that is what is passed into Compile-AppWithArtifact by param.

} -ArgumentList $alcPath,$appProjectFolder, $appSymbolsFolder, (Join-Path $appOutputFolder $appName), $EnableCodeCop, $EnableAppSourceCop, $EnablePerTenantExtensionCop, $EnableUICop, $containerRulesetFile, $assemblyProbingPaths, $nowarn, $GenerateReportLayoutParam, $features, $preProcessorSymbols

installbcmodules failing with allowPreRelease

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:

  • master

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

Suggestion: Support for EnableCodeCop and FailOn

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.

CALTestResults Webservice page

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 ๐Ÿคทโ€โ™‚๏ธ

New-WebServiceProxy ReadMultiple 404 not found

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.

Get .app if not found locally from Package Manager

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.

Insider image is giving warning that the image was not found locally

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.

Error "There was no endpoint listening at http://localhost:7086/BC/ManagementServicePs/Service.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details." when creating new container

There is error

There was no endpoint listening at http://localhost:7086/BC/ManagementServicePs/Service.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

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

Get-ContainerImageCurrentness NullArray errors

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(':');
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray

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];
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray

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];
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray

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];
    
  •     ~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : NullArray

Cannot read data about the image from server, rather pulling

No License

Hi!

Could you maybe add a license to this project?

Dynamic readout of the settings

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.

$SettingsScript = (Join-Path $Path 'Scripts\Settings.ps1')
if (Test-Path $SettingsScript) {
Write-Host "Running $SettingsScript ..."
. (Join-Path $Path 'Scripts\Settings.ps1')
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.