kine / msdyn365bc_yaml Goto Github PK
View Code? Open in Web Editor NEWYaml templates for CI/CD for Micrsoft Dynamics 365 Business Central
License: MIT License
Yaml templates for CI/CD for Micrsoft Dynamics 365 Business Central
License: MIT License
Hi Kine,
thanks for the tools.
I'm trying to setup the pipelines to publish App to online sandbox. I received below error in the pipeline and the App is successfully published. Any idea why ?
Thanks.
020-04-23T05:46:24.6853430Z ##[debug]Caught exception from task script.
2020-04-23T05:46:24.6885409Z ##[debug]Error record:
2020-04-23T05:46:24.8596776Z ##[debug]Get-ALAppPublicationStatus : Cannot index into a null array.
2020-04-23T05:46:24.8610876Z ##[debug]At C:\Users\xxxx\Documents\WindowsPowerShell\Modules\NVRAppDevOps\1.0.10\Upload-PerTenantApp.ps1:35 char:23
2020-04-23T05:46:24.8624420Z ##[debug]+ ... $Status = Get-ALAppPublicationStatus -AppId $AppId -AppSecret $AppS ...
2020-04-23T05:46:24.8638220Z ##[debug]+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-04-23T05:46:24.8659418Z ##[debug] + CategoryInfo : InvalidOperation: (:) [Get-ALAppPublicationStatus], RuntimeException
2020-04-23T05:46:24.8673187Z ##[debug] + FullyQualifiedErrorId : NullArray,Get-ALAppPublicationStatus
2020-04-23T05:46:24.8687722Z ##[debug]
2020-04-23T05:46:24.8713010Z ##[debug]Script stack trace:
2020-04-23T05:46:24.8746510Z ##[debug]at Get-ALAppPublicationStatus, C:\Users\xx\Documents\WindowsPowerShell\Modules\NVRAppDevOps\1.0.10\Get-ALAppPublicationStatus.ps1: line 35
2020-04-23T05:46:24.8759320Z ##[debug]at Upload-PerTenantApp, C:\Users\xxx\Documents\WindowsPowerShell\Modules\NVRAppDevOps\1.0.10\Upload-PerTenantApp.ps1: line 35
2020-04-23T05:46:24.8774389Z ##[debug]at , C:\Users\xxx\Downloads\vsts-agent-win-x64-2.165.2_work_tasks\publishbcapppertenant_047393e1-82e4-4d24-8275-237409bb378e\1.0.3\publishtenanttask.ps1: line 27
2020-04-23T05:46:24.8787079Z ##[debug]at , : line 1
2020-04-23T05:46:24.8801035Z ##[debug]at , : line 22
2020-04-23T05:46:24.8821032Z ##[debug]at , : line 18
2020-04-23T05:46:24.8835506Z ##[debug]at , : line 1
2020-04-23T05:46:24.8861615Z ##[debug]Exception:
2020-04-23T05:46:24.8914370Z ##[debug]System.Management.Automation.RuntimeException: Cannot index into a null array.
2020-04-23T05:46:24.8926562Z ##[debug] at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2020-04-23T05:46:24.8943100Z ##[debug] at System.Management.Automation.Interpreter.ActionCallInstruction2.Run(InterpretedFrame frame) 2020-04-23T05:46:24.8958536Z ##[debug] at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) 2020-04-23T05:46:24.8974329Z ##[debug] at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) 2020-04-23T05:46:24.8991809Z ##[debug] at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) 2020-04-23T05:46:24.9006563Z ##[debug] at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) 2020-04-23T05:46:24.9018984Z ##[debug] at System.Management.Automation.PSScriptCmdlet.RunClause(Action
1 clause, Object dollarUnderbar, Object inputToProcess)
2020-04-23T05:46:24.9033338Z ##[debug] at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
2020-04-23T05:46:24.9045536Z ##[debug] at System.Management.Automation.CommandProcessorBase.Complete()
2020-04-23T05:46:24.9331913Z ##[error]Cannot index into a null array.
2020-04-23T05:46:24.9342420Z ##[debug]Processed: ##vso[task.logissue type=error]Cannot index into a null array.
2020-04-23T05:46:24.9344123Z ##[debug]Processed: ##vso[task.complete result=Failed]
Hi Kamil,
I'm getting an error in the compile task.
2019-01-23T15:05:53.3000776Z **** Compiling MainApp ****
2019-01-23T15:05:53.6540041Z ##[error]The appProjectFolder (C:\DevOpsAgent\BHBC_work\1\s\MainApp) is not shared with the container.
2019-01-23T15:05:53.6605149Z ##[error]At C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\0.4.3.2\AppHandling\Compile-AppInNavContainer.ps1:56 c
har:9
throw "The appProjectFolder ($appProjectFolder) is not shared ...
2019-01-23T15:05:53.6762099Z ##[error]+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2019-01-23T15:05:53.6845764Z ##[error] + CategoryInfo : OperationStopped: (The appProjectF... the container.:String) [], RuntimeException
2019-01-23T15:05:53.6966150Z ##[error] + FullyQualifiedErrorId : The appProjectFolder (C:\DevOpsAgent\BHBC_work\1\s\MainApp) is not shared with the cont
2019-01-23T15:05:53.7050476Z ##[error] ainer.
2019-01-23T15:05:53.7217731Z ##[error]
2019-01-23T15:05:53.7260874Z ##[error]PowerShell exited with code '1'.
2019-01-23T15:05:53.7623200Z ##[section]Finishing: Compile AL Apps
Have you seen this one before?
Hello Kamil,
Thanks for your investment into BC automated builds and deployment. I'm very interested to read more about your findings, since we're on the same path although a little bit behind ;-).
You're using NVRAppDevOps commandlets throughout your templates. I've not been able to find any sources for this module and I was wondering if you're planning to release those information? If so, will you release more information on how your AL Configuration does look like asf.
Cheers,
Andreas
When I'm trying to build then I'm getting this error:
Repository MSDYN365BC_Yaml references endpoint GitHub which does not exist or is not authorized for use,
Unexpected step type: 'StepsTemplateReference'
Hey Kamil,
since I can't find license information in this or any of your other repositories I'm wondering if using your code is allowed. Could you please decide on a license and add a license.md file?
Thank you very much
Hey Kamil,
my builds are currently failing while trying to compile your "MainApp". The error I get is coming from the navcontainerhelper module:
Invoke-RestMethod : The remote server returned an error: (401) Unauthorized.
I added all neccessary files and the build definition into my repository. My build agent is set up correctly (Atleast I think so). Had to do some extra stuff, like installing nuget as a packageprovider once but that is besides the point.
It seems like the build definition doesn't pass my credentials all the way through.
Do you have any idea?
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.