HodorNV / ALOps

ALOps
56 stars 24 forks source link

Task ALOps App Validation: ##[error]Access to the path 'C:\vsts-agent-alops-warp10\_work\1736\s' is denied. #707

Closed Arthurvdv closed 6 months ago

Arthurvdv commented 9 months ago

Describe the bug We not providing a license_path variable on ALOpsAppValidation@1, this results in an error ##[error]Access to the path 'C:\vsts-agent-alops-warp10\_work\1736\s' is denied..

the used yaml please provide the yaml that you used. It helps you put the yaml like this:

- task: ALOpsAppValidation@1
  displayName: 'App Validation'
  condition: succeeded()
  inputs:
    affixes: '<redacted>'
    artifact_path: $(System.ArtifactsDirectory)
    installapps_path: $(System.DefaultWorkingDirectory)\.apps
    previousapps_path: $(System.DefaultWorkingDirectory)\.previous

the output Also the complete output is necessary for us to see what is going on. Also use backtics:

2023-12-07T10:08:50.9178855Z ##[section]Starting: App Validation
2023-12-07T10:08:50.9252128Z ==============================================================================
2023-12-07T10:08:50.9252352Z Task         : ALOps App Validation
2023-12-07T10:08:50.9252485Z Description  : Validate App from Business Central AppSource
2023-12-07T10:08:50.9252685Z Version      : 1.461.5079
2023-12-07T10:08:50.9252781Z Author       : Hodor
2023-12-07T10:08:50.9252860Z Help         : Validate App from Business Central AppSource.
2023-12-07T10:08:50.9253481Z ==============================================================================
2023-12-07T10:08:51.4802259Z *** Validate configuration
2023-12-07T10:08:51.5390717Z *** Task Inputs:
2023-12-07T10:08:51.5438892Z 
2023-12-07T10:08:51.5549786Z name                value                                            
2023-12-07T10:08:51.5554816Z ----                -----                                            
2023-12-07T10:08:51.5557735Z license_path        C:\vsts-agent-alops-warp10\_work\1736\s          
2023-12-07T10:08:51.5561276Z countries                                                            
2023-12-07T10:08:51.5565179Z affixes             <redacted>                                      
2023-12-07T10:08:51.5567311Z artifact_path       C:\vsts-agent-alops-warp10\_work\1736\a          
2023-12-07T10:08:51.5571598Z artifact_filter     *.app                                            
2023-12-07T10:08:51.5573698Z installapps_path    C:\vsts-agent-alops-warp10\_work\1736\s\.apps    
2023-12-07T10:08:51.5577998Z installapps_filter  *.app                                            
2023-12-07T10:08:51.5580726Z previousapps_path   C:\vsts-agent-alops-warp10\_work\1736\s\.previous
2023-12-07T10:08:51.5583905Z previousapps_filter *.app                                            
2023-12-07T10:08:51.5586586Z memory              8G                                               
2023-12-07T10:08:51.5589812Z validateversion                                                      
2023-12-07T10:08:51.5593643Z validatecurrent     False                                            
2023-12-07T10:08:51.5597187Z validatenextminor   False                                            
2023-12-07T10:08:51.5600672Z validatenextmajor   False                                            
2023-12-07T10:08:51.5604024Z sastoken                                                             
2023-12-07T10:08:51.5607963Z skipverification    False                                            
2023-12-07T10:08:51.5610743Z skipappsourcecop    False                                            
2023-12-07T10:08:51.5614120Z includewarnings     False                                            
2023-12-07T10:08:51.5616463Z failonerror         True                                             
2023-12-07T10:08:51.5620796Z containername       bcserver                                         
2023-12-07T10:08:51.5623595Z accept_insider_eula False                                            
2023-12-07T10:08:51.5624973Z 
2023-12-07T10:08:51.5642904Z 
2023-12-07T10:08:51.5650755Z 
2023-12-07T10:08:51.5794695Z *** For documentation, please visit   : https://www.alops.be/documentation
2023-12-07T10:08:51.5798668Z 
2023-12-07T10:08:51.8836893Z *** ALOps License:
2023-12-07T10:08:51.8892829Z   * Licensed To: Van Roey (Collection License)
2023-12-07T10:08:51.8905433Z 
2023-12-07T10:08:51.9472758Z *** Importing required PS-Functions
2023-12-07T10:08:51.9595890Z *** Install/Update BCContainerHelper [https://github.com/microsoft/navcontainerhelper]
2023-12-07T10:08:51.9663150Z *** Check BcContainerHelper
2023-12-07T10:08:51.9998645Z *** Load BcContainerHelper
2023-12-07T10:08:52.0628240Z BcContainerHelper version 6.0.1
2023-12-07T10:08:52.2722076Z BC.HelperFunctions emits usage statistics telemetry to Microsoft
2023-12-07T10:08:53.9841437Z 
2023-12-07T10:08:53.9842395Z ModuleType Version    Name                                ExportedCommands                                             
2023-12-07T10:08:53.9842901Z ---------- -------    ----                                ----------------                                             
2023-12-07T10:08:53.9844686Z Script     6.0.1      BcContainerHelper                   {Add-FontsToBcContainer, Add-GitToAlProjectFolder, AddTele...
2023-12-07T10:08:53.9845054Z 
2023-12-07T10:08:53.9845097Z 
2023-12-07T10:08:53.9845139Z 
2023-12-07T10:08:53.9846615Z 
2023-12-07T10:08:53.9860737Z *** Setup Flf File: C:\vsts-agent-alops-warp10\_work\1736\s
2023-12-07T10:08:53.9914859Z *** Flf File: C:\vsts-agent-alops-warp10\_work\1736\s
2023-12-07T10:08:53.9927837Z *** Flf Content:
2023-12-07T10:08:54.1040186Z ##[error]Access to the path 'C:\vsts-agent-alops-warp10\_work\1736\s' is denied.
2023-12-07T10:08:54.1275757Z ##[section]Finishing: App Validation

Additional context We're phasing out the need for an developer license and want to use the Cronus license in all of our pipelines: Dynamics 365 Business Central 2023 Wave 1 and the new CRONUS license: what you need to know. – Stefano Demiliani

waldo1001 commented 7 months ago

We think we found the issue - next release!

Arthurvdv commented 7 months ago

Awesome! This is the last piece of our pipeline to have the need for a developer license, then we're fully free of this :-)

waldo1001 commented 6 months ago

this should have been released in 1.462

Arthurvdv commented 6 months ago

Awesome and indeed the error is resolved now.

We're completely dev-license free now in our pipelines, thank you! :-)