HodorNV / ALOps

ALOps
59 stars 24 forks source link

Failonwarnings does not fail the build even though there is warnings #718

Closed rasmusskov closed 2 months ago

rasmusskov commented 8 months ago

Describe the bug We have a project, where failonwarnings = true in the yml file, but when alops pipeline is run, it still completes as succeeded the used yaml please provide the yaml that you used. It helps you put the yaml like this:


name: Build $(Rev:r)

variables:
  - name: "alops-licenseid"
    value: "***HIDDEN***"

pool: Default

steps:
  - task: ALOpsAppCompiler@2
    inputs:
      artifactversion: "22.4.59114.59535"
      artifactcountry: "is"
      versionselect: Closest
      alsourcepath: "$(System.DefaultWorkingDirectory)"
      appversiontemplate: "22.4.[yyyyMMdd].*"
      appfilenametemplate: "%APP_PUBLISHER%_%APP_NAME%_%APP_VERSION%.app"
      alcodeanalyzer: "CodeCop,UICop"
      alcachepath: "$(System.DefaultWorkingDirectory)"
      publishxlif: true
      failonwarnings: true

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

2024-01-23T11:19:40.2613143Z ##[section]Starting: ALOpsAppCompiler
2024-01-23T11:19:40.2749490Z ==============================================================================
2024-01-23T11:19:40.2749722Z Task         : ALOps App Compiler
2024-01-23T11:19:40.2749844Z Description  : Compile AL Extension(s) for Business Central
2024-01-23T11:19:40.2750000Z Version      : 2.0.5118
2024-01-23T11:19:40.2750110Z Author       : Hodor
2024-01-23T11:19:40.2750212Z Help         : Compile Business Central extension(s) from AL code.
2024-01-23T11:19:40.2750364Z ==============================================================================
2024-01-23T11:19:40.6969262Z ******************************************************************************
2024-01-23T11:19:40.6972380Z *** ALOps v2 - Preview                                                     ***
2024-01-23T11:19:40.6975531Z ******************************************************************************
2024-01-23T11:19:40.7073494Z *** Importing required ALOps-Functions
2024-01-23T11:19:40.7523153Z *** Task Inputs:
2024-01-23T11:19:40.7553171Z 
2024-01-23T11:19:40.7638524Z name                                             value                                       
2024-01-23T11:19:40.7641613Z ----                                             -----                                       
2024-01-23T11:19:40.7642206Z artifactversion                                  22.4.59114.59535                            
2024-01-23T11:19:40.7642636Z artifacttype                                     OnPrem                                      
2024-01-23T11:19:40.7643763Z artifactcountry                                  is                                          
2024-01-23T11:19:40.7644616Z versionselect                                    Closest                                     
2024-01-23T11:19:40.7645260Z alternativeartifacturl                                                                       
2024-01-23T11:19:40.7646031Z alternativevsixurl                                                                           
2024-01-23T11:19:40.7646954Z alsourcepath                                     C:\agent\_work\223\s                        
2024-01-23T11:19:40.7648712Z ruleset                                                                                      
2024-01-23T11:19:40.7649273Z suppresswarnings                                 KEEP                                        
2024-01-23T11:19:40.7650213Z appversiontemplate                               22.4.[yyyyMMdd].*                           
2024-01-23T11:19:40.7651108Z updatebuildnumber                                True                                        
2024-01-23T11:19:40.7652066Z appfilenametemplate                              %APP_PUBLISHER%_%APP_NAME%_%APP_VERSION%.app
2024-01-23T11:19:40.7652951Z alcodeanalyzer                                   CodeCop,UICop                               
2024-01-23T11:19:40.7653817Z ignorepragmas                                                                                
2024-01-23T11:19:40.7654832Z enable_external_rulesets                         False                                       
2024-01-23T11:19:40.7655726Z showmycode                                       Keep                                        
2024-01-23T11:19:40.7656784Z resourceexposurepolicy_allowdebugging            Keep                                        
2024-01-23T11:19:40.7657715Z resourceexposurepolicy_allowdownloadingsource    Keep                                        
2024-01-23T11:19:40.7658681Z resourceexposurepolicy_includesourceinsymbolfile Keep                                        
2024-01-23T11:19:40.7659564Z internalsvisibleto                               Keep                                        
2024-01-23T11:19:40.7660516Z preprocessorsymbols                                                                          
2024-01-23T11:19:40.7661453Z applicationinsightskey                                                                       
2024-01-23T11:19:40.7662404Z alcachepath                                      C:\agent\_work\223\s                        
2024-01-23T11:19:40.7666677Z publishartifact                                  True                                        
2024-01-23T11:19:40.7666961Z publishxlif                                      True                                        
2024-01-23T11:19:40.7667309Z failonwarnings                                   True                                        
2024-01-23T11:19:40.7667645Z storageaccount                                                                               
2024-01-23T11:19:40.7668068Z sastoken                                                                                     
2024-01-23T11:19:40.7669120Z printappmanifest                                 True                                        
2024-01-23T11:19:40.7669994Z outputalclogs                                    True                                        
2024-01-23T11:19:40.7671023Z additionalprobingpaths                                                                       
2024-01-23T11:19:40.7671980Z allowed_publisher_names                                                                      
2024-01-23T11:19:40.7672939Z allowed_publisher_names_separator                ,                                           
2024-01-23T11:19:40.7673776Z accept_insider_eula                              False                                       
2024-01-23T11:19:40.7675618Z track_source_build_metadata                      True                                        
2024-01-23T11:19:40.7678666Z 
2024-01-23T11:19:40.7690413Z 
2024-01-23T11:19:40.7695073Z 
2024-01-23T11:19:40.8089732Z *** For documentation, please visit   : https://www.alops.be/documentation
2024-01-23T11:19:40.8092757Z 
2024-01-23T11:19:41.4112425Z *** ALOps License:
2024-01-23T11:19:41.4121671Z   * Licensed To: Tegra (Collection License)
2024-01-23T11:19:41.4124189Z 
2024-01-23T11:19:41.4277204Z *** Importing required Task-Functions
2024-01-23T11:19:41.4554317Z 
2024-01-23T11:19:41.4624557Z *** Artifact Type   : [OnPrem]
2024-01-23T11:19:41.4627896Z *** Artifact Version: [22.4.59114.59535]
2024-01-23T11:19:41.4630989Z *** Artifact Country: [is]
2024-01-23T11:19:41.4633972Z *** AL Source Path  : [C:\agent\_work\223\s]
2024-01-23T11:19:41.4637093Z *** AL Cache Path   : [C:\agent\_work\223\s]
2024-01-23T11:19:41.4638632Z 
2024-01-23T11:19:41.4648525Z 
2024-01-23T11:19:41.4744577Z *** Default Working Folder: C:\agent\_work\223\s
2024-01-23T11:19:41.4748298Z *** Artifact Folder       : C:\agent\_work\223\a
2024-01-23T11:19:41.4751661Z *** Agent Tool Folder     : C:\agent\_work\_tool
2024-01-23T11:19:41.4754869Z *** Agent Temp Folder     : C:\agent\_work\_temp
2024-01-23T11:19:41.4756443Z 
2024-01-23T11:19:41.4779482Z *** Resolving Path: [C:\agent\_work\223\s]
2024-01-23T11:19:41.4807333Z *** AL Source Folder      : C:\agent\_work\223\s
2024-01-23T11:19:41.4811925Z *** Resolving Path: [C:\agent\_work\223\s]
2024-01-23T11:19:41.4817688Z *** AL Cache Folder       : C:\agent\_work\223\s
2024-01-23T11:19:41.4819370Z 
2024-01-23T11:19:41.4828107Z *** Check BcContainerHelper
2024-01-23T11:19:41.5094675Z *** Install BcContainerHelper
2024-01-23T11:19:41.7371378Z *** Install/Update container helper failed: Administrator rights are required to install modules in 'C:\Program Files\WindowsPowerShell\Modules'. Log on to the computer with an account that has Administrator rights, and then try again, or install 'C:\WINDOWS\ServiceProfiles\NetworkService\Documents\WindowsPowerShell\Modules' by adding "-Scope CurrentUser" to your command. You can also try running the Windows PowerShell session with elevated rights (Run as Administrator).
2024-01-23T11:19:41.7376019Z *** Load BcContainerHelper
2024-01-23T11:19:41.8289729Z BcContainerHelper version 4.0.14
2024-01-23T11:19:41.9299191Z BC.HelperFunctions emits usage statistics telemetry to Microsoft
2024-01-23T11:19:42.0337568Z nt authority\network service does NOT have modify permissions to C:\WINDOWS\System32\drivers\etc\hosts
2024-01-23T11:19:42.0348444Z You need to run as administrator or you can run Check-BcContainerHelperPermissions -Fix to fix permissions
2024-01-23T11:19:42.0516222Z nt authority\network service does NOT have permissions to run docker commands
2024-01-23T11:19:42.0528405Z You need to run as administrator or you can run Check-BcContainerHelperPermissions -Fix to fix permissions
2024-01-23T11:19:43.0946601Z 
2024-01-23T11:19:43.0949341Z 
2024-01-23T11:19:43.1071868Z ##[command]"Get-BCArtifactUrl" 
2024-01-23T11:19:43.1072078Z Name                           Value                                                                                   
2024-01-23T11:19:43.1072428Z ----                           -----                                                                                   
2024-01-23T11:19:43.1072520Z select                         Closest                                                                                 
2024-01-23T11:19:43.1072615Z version                        22.4.59114.59535                                                                        
2024-01-23T11:19:43.1072710Z type                           OnPrem                                                                                  
2024-01-23T11:19:43.1072797Z country                        is                                                                                      
2024-01-23T11:19:43.1072832Z 
2024-01-23T11:19:43.1072858Z 
2024-01-23T11:19:43.1073056Z  -select: Closest -version: 22.4.59114.59535 -type: OnPrem -country: is
2024-01-23T11:19:45.3139482Z *** Platform: c:\bcartifacts.cache\onprem\22.4.59114.59535\platform
2024-01-23T11:19:45.3154443Z *** Localisation: c:\bcartifacts.cache\onprem\22.4.59114.59535\is
2024-01-23T11:19:45.3369006Z *** BC Management DLL: C:\bcartifacts.cache\onprem\22.4.59114.59535\platform\ServiceTier\program files\Microsoft Dynamics NAV\220\Service\Management\Microsoft.Dynamics.Nav.Management.dll
2024-01-23T11:19:45.3621989Z *** BC App Management DLL: C:\bcartifacts.cache\onprem\22.4.59114.59535\platform\ServiceTier\program files\Microsoft Dynamics NAV\220\Service\Management\Microsoft.Dynamics.Nav.Apps.Management.dll
2024-01-23T11:19:45.3738211Z *** Get [*.app] and [app.json] files recursive from [C:\agent\_work\223\s]
2024-01-23T11:19:45.3863838Z *** Found [8] files.
2024-01-23T11:19:45.3868694Z *** Extract App detail from [C:\agent\_work\223\s\.alpackages\ls-retail_ls-central_22.3.0.1000623.app]
2024-01-23T11:19:45.7287376Z *** Extract App detail from [C:\agent\_work\223\s\.alpackages\ls_central_system_app_runtime.app]
2024-01-23T11:19:45.7440245Z *** Extract App detail from [C:\agent\_work\223\s\.alpackages\Microsoft_Application_22.4.59114.59535.app]
2024-01-23T11:19:45.7470635Z *** Extract App detail from [C:\agent\_work\223\s\.alpackages\Microsoft_Base Application_22.4.59114.59535.app]
2024-01-23T11:19:45.8809708Z *** Extract App detail from [C:\agent\_work\223\s\.alpackages\Microsoft_System Application_22.4.59114.59535.app]
2024-01-23T11:19:45.8980638Z *** Extract App detail from [C:\agent\_work\223\s\.alpackages\System_22.4.59114.59535.app]
2024-01-23T11:19:45.9026501Z *** Extract App detail from [C:\agent\_work\223\s\.alpackages\Tegra_Tegra Central_22.4.20230905.18927.app]
2024-01-23T11:19:45.9046778Z *** Extract App detail from [C:\agent\_work\223\s\app.json]
2024-01-23T11:19:45.9379259Z *** Starting Batch compile of Apps:
2024-01-23T11:19:45.9399742Z   * C:\agent\_work\223\s
2024-01-23T11:19:45.9406124Z *** Start Compiling: [C:\agent\_work\223\s]
2024-01-23T11:19:45.9777064Z *** Get App Information
2024-01-23T11:19:45.9799664Z *** Loading Json Object: [C:\agent\_work\223\s\app.json]
2024-01-23T11:19:45.9825824Z   * Id         : 4902a703-6651-45d5-bbd0-3fc0548b0c46
2024-01-23T11:19:45.9828856Z   * Publisher  : Tegra
2024-01-23T11:19:45.9831635Z   * Name       : LS2.0
2024-01-23T11:19:45.9834891Z   * Description: LS Central Enhancements
2024-01-23T11:19:45.9838975Z   * Version    : 22.4.0.0
2024-01-23T11:19:45.9851581Z *** Check Runtime: [11.0]
2024-01-23T11:19:45.9877334Z *** Runtime: 11
2024-01-23T11:19:46.0082170Z *** Match: yyyyMMdd
2024-01-23T11:19:46.0117174Z *** Validate Version: 22.4.20240123.24929
2024-01-23T11:19:46.0123560Z *** Setting Managed App Version [C:\agent\_work\223\s\app.json] =>  22.4.20240123.24929
2024-01-23T11:19:46.0199077Z *** VSCode Settings: [C:\agent\_work\223\s\.vscode\settings.json]
2024-01-23T11:19:46.0205864Z *** VSCode-Settings json found.
2024-01-23T11:19:46.0209585Z *** Loading Json Object: [C:\agent\_work\223\s\.vscode\settings.json]
2024-01-23T11:19:46.0319238Z *** Using Ruleset: [C:\agent\_work\223\s\.vscode\ruleset.json]
2024-01-23T11:19:46.0450442Z ##[command]"Get-BCArtifactUrl" 
2024-01-23T11:19:46.0450513Z Name                           Value                                                                                   
2024-01-23T11:19:46.0450677Z ----                           -----                                                                                   
2024-01-23T11:19:46.0451165Z select                         Closest                                                                                 
2024-01-23T11:19:46.0451297Z version                        22.4.59114.59535                                                                        
2024-01-23T11:19:46.0451379Z type                           OnPrem                                                                                  
2024-01-23T11:19:46.0451491Z country                        is                                                                                      
2024-01-23T11:19:46.0451746Z 
2024-01-23T11:19:46.0451772Z 
2024-01-23T11:19:46.0451794Z 
2024-01-23T11:19:47.1103454Z *** Platform: c:\bcartifacts.cache\onprem\22.4.59114.59535\platform
2024-01-23T11:19:47.1116307Z *** Localisation: c:\bcartifacts.cache\onprem\22.4.59114.59535\is
2024-01-23T11:19:47.1220253Z *** VSIX Path: C:\bcartifacts.cache\onprem\22.4.59114.59535\platform\ModernDev\program files\Microsoft Dynamics NAV\220\AL Development Environment\ALLanguage.vsix
2024-01-23T11:19:47.1566028Z *** ALC Path: C:\bcartifacts.cache\onprem\22.4.59114.59535\VSIX\extension\bin\win32\alc.exe
2024-01-23T11:19:47.1577440Z *** Nav.CodeAnalysis Path: C:\bcartifacts.cache\onprem\22.4.59114.59535\VSIX\extension\bin\Microsoft.Dynamics.Nav.CodeAnalysis.dll
2024-01-23T11:19:47.1642142Z *** Import Module
2024-01-23T11:19:47.2019045Z *** Get Localised Apps [150]
2024-01-23T11:19:47.5449301Z *** Get Platform Apps [147]
Compressed dues to size
2024-01-23T11:19:47.5456169Z   * 
2024-01-23T11:19:47.9726068Z *** Retained Platform Apps [4]
2024-01-23T11:19:47.9731229Z *** Loaded [154] Apps
2024-01-23T11:19:47.9744878Z *** Get Build Apps [0]
2024-01-23T11:19:47.9750793Z *** AL Cache: [C:\agent\_work\223\s]
2024-01-23T11:19:47.9800442Z *** Loaded [7] AL Apps
2024-01-23T11:19:47.9835927Z *** AL Language Version: 11.6.844881
2024-01-23T11:19:47.9890944Z *** App To Build: [C:\agent\_work\223\a\Tegra_LS2.0_22.4.20240123.24929.app]
2024-01-23T11:19:47.9896443Z *** Checking for Assemblies in App
2024-01-23T11:19:47.9953627Z *** Add Windows Assembly Path [C:\Windows\assembly]
2024-01-23T11:19:48.0176565Z *** Adding Mock assemblies [C:\bcartifacts.cache\onprem\22.4.59114.59535\platform\Test Assemblies\Mock Assemblies]
2024-01-23T11:19:48.0538387Z *** Adding Add-In assemblies [C:\bcartifacts.cache\onprem\22.4.59114.59535\platform\ServiceTier\program files\Microsoft Dynamics NAV\220\Service]
2024-01-23T11:19:48.0589447Z *** Searching CodeCop: CodeCop
2024-01-23T11:19:48.0667239Z *** Codecop found: C:\bcartifacts.cache\onprem\22.4.59114.59535\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.CodeCop.dll
2024-01-23T11:19:48.0795524Z *** Searching CodeCop: UICop
2024-01-23T11:19:48.0795611Z *** Codecop found: C:\bcartifacts.cache\onprem\22.4.59114.59535\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.UICop.dll
2024-01-23T11:19:48.0910953Z *** Copy BC Artifact dependencies
2024-01-23T11:19:48.4729299Z *** Copy Project Artifact dependencies
2024-01-23T11:19:48.5114759Z *** Copy Build Artifacts
2024-01-23T11:19:48.5118640Z *** Final app.json:
2024-01-23T11:19:48.5133688Z {
2024-01-23T11:19:48.5134353Z     "id":  "4902a703-6651-45d5-bbd0-3fc0548b0c46",
2024-01-23T11:19:48.5134426Z     "name":  "LS2.0",
2024-01-23T11:19:48.5134477Z     "version":  "22.4.20240123.24929",
2024-01-23T11:19:48.5135397Z     "publisher":  "Tegra",
2024-01-23T11:19:48.5135444Z     "brief":  "LS Central Enhancements",
2024-01-23T11:19:48.5135507Z     "description":  "LS Central Enhancements",
2024-01-23T11:19:48.5135627Z     "privacyStatement":  "https://tegra.is/",
2024-01-23T11:19:48.5135715Z     "EULA":  "https://tegra.is/",
2024-01-23T11:19:48.5135796Z     "help":  "https://tegra.is/",
2024-01-23T11:19:48.5135952Z     "url":  "https://tegra.is/",
2024-01-23T11:19:48.5136022Z     "logo":  "./logo/logo Tegra resize vlowsquare.jpg",
2024-01-23T11:19:48.5136103Z     "dependencies":  [
2024-01-23T11:19:48.5136139Z                          {
2024-01-23T11:19:48.5136351Z                              "id":  "5ecfc871-5d82-43f1-9c54-59685e82318d",
2024-01-23T11:19:48.5136428Z                              "publisher":  "LS Retail",
2024-01-23T11:19:48.5136625Z                              "name":  "LS Central",
2024-01-23T11:19:48.5136692Z                              "version":  "22.3.0.1000623"
2024-01-23T11:19:48.5136743Z                          },
2024-01-23T11:19:48.5136791Z                          {
2024-01-23T11:19:48.5136944Z                              "id":  "c70dea3e-1e6c-4cec-864c-0176aef273ed",
2024-01-23T11:19:48.5137022Z                              "name":  "Tegra Central",
2024-01-23T11:19:48.5137066Z                              "publisher":  "Tegra",
2024-01-23T11:19:48.5137107Z                              "version":  "22.4.0.0"
2024-01-23T11:19:48.5137147Z                          }
2024-01-23T11:19:48.5137178Z                      ],
2024-01-23T11:19:48.5137217Z     "screenshots":  [
2024-01-23T11:19:48.5137236Z 
2024-01-23T11:19:48.5137268Z                     ],
2024-01-23T11:19:48.5137310Z     "platform":  "22.0.0.0",
2024-01-23T11:19:48.5137354Z     "application":  "22.4.0.0",
2024-01-23T11:19:48.5137391Z     "idRanges":  [
2024-01-23T11:19:48.5137428Z                      {
2024-01-23T11:19:48.5137463Z                          "from":  10041000,
2024-01-23T11:19:48.5137506Z                          "to":  10041049
2024-01-23T11:19:48.5137540Z                      },
2024-01-23T11:19:48.5137570Z                      {
2024-01-23T11:19:48.5137609Z                          "from":  10041130,
2024-01-23T11:19:48.5137724Z                          "to":  10041149
2024-01-23T11:19:48.5137825Z                      },
2024-01-23T11:19:48.5137855Z                      {
2024-01-23T11:19:48.5137890Z                          "from":  10051000,
2024-01-23T11:19:48.5137933Z                          "to":  10051049
2024-01-23T11:19:48.5137967Z                      }
2024-01-23T11:19:48.5137997Z                  ],
2024-01-23T11:19:48.5138044Z     "contextSensitiveHelpUrl":  "https://LS2.0.com/help/",
2024-01-23T11:19:48.5138093Z     "resourceExposurePolicy":  {
2024-01-23T11:19:48.5138142Z                                    "allowDebugging":  true,
2024-01-23T11:19:48.5138187Z                                    "includeSourceInSymbolFile":  true
2024-01-23T11:19:48.5138231Z                                },
2024-01-23T11:19:48.5138265Z     "target":  "OnPrem",
2024-01-23T11:19:48.5138303Z     "runtime":  "11.0",
2024-01-23T11:19:48.5138343Z     "features":  [
2024-01-23T11:19:48.5138379Z                      "TranslationFile"
2024-01-23T11:19:48.5138418Z                  ]
2024-01-23T11:19:48.5138447Z }
2024-01-23T11:19:48.5139363Z 
2024-01-23T11:19:48.5148841Z *** Detect ALC.EXE Features.
2024-01-23T11:19:48.5152318Z ##[command]& C:\bcartifacts.cache\onprem\22.4.59114.59535\VSIX\extension\bin\win32\alc.exe /?
2024-01-23T11:19:48.5888771Z   * PARALLEL
2024-01-23T11:19:48.5892054Z   * MAXDEGREEOFPARALLELISM
2024-01-23T11:19:48.5895790Z   * ASSEMBLYPROBINGPATHS
2024-01-23T11:19:48.5899264Z *** Start ALC.EXE / Compile AL Extension
2024-01-23T11:19:48.5902676Z ##[command]& C:\bcartifacts.cache\onprem\22.4.59114.59535\VSIX\extension\bin\win32\alc.exe /packagecachepath:"C:\agent\_work\223\s\.ALOPSCache" /project:"C:\agent\_work\223\s" /out:"C:\agent\_work\223\a\Tegra_LS2.0_22.4.20240123.24929.app" /fullpaths /analyzer:"C:\bcartifacts.cache\onprem\22.4.59114.59535\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.CodeCop.dll","C:\bcartifacts.cache\onprem\22.4.59114.59535\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.UICop.dll" /ruleset:"C:\agent\_work\223\s\.vscode\ruleset.json" /parallel+ /maxDegreeOfParallelism:2 /assemblyprobingpaths:"C:\Windows\assembly","C:\Windows\Microsoft.NET\assembly","C:\bcartifacts.cache\onprem\22.4.59114.59535\platform\Test Assemblies\Mock Assemblies","C:\bcartifacts.cache\onprem\22.4.59114.59535\platform\ServiceTier\program files\Microsoft Dynamics NAV\220\Service"
2024-01-23T11:19:57.8718153Z *** AL Compiler Exit Code: 0
2024-01-23T11:19:57.8750421Z *** Set Pipeline variable $(ALOPS_COMPILE_ARTIFACT) = 'C:\agent\_work\223\a\Tegra_LS2.0_22.4.20240123.24929.app'
2024-01-23T11:19:57.8781841Z *** Set Pipeline variable $(ALOPS_COMPILE_ARTIFACT_ARRAY) = 'C:\agent\_work\223\a\Tegra_LS2.0_22.4.20240123.24929.app'
2024-01-23T11:19:57.8833732Z *** AL Compiler raw logs: Start
2024-01-23T11:19:57.8839065Z Microsoft (R) AL Compiler version 11.6.12.58473
2024-01-23T11:19:57.8842896Z Copyright (C) Microsoft Corporation. All rights reserved
2024-01-23T11:19:57.8848562Z Compilation started for project 'LS2.0' containing '348' files at '11:19:48.792'.
2024-01-23T11:19:57.8851527Z C:\agent\_work\223\s\Codeunit\ICEAfterSaleManagement.Codeunit.al(816,9): info AA0072: The name of PosMenuHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8854873Z C:\agent\_work\223\s\Codeunit\ICEAfterSaleManagement.Codeunit.al(817,9): info AA0072: The name of POSMenuLine is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8858020Z C:\agent\_work\223\s\Codeunit\ICEAfterSaleManagement.Codeunit.al(818,9): info AA0072: The name of TempPosMenuLine is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8861313Z C:\agent\_work\223\s\Codeunit\ICEAfterSaleManagement.Codeunit.al(819,9): info AA0072: The name of TempPosMenuHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8864440Z C:\agent\_work\223\s\Codeunit\ICEAfterSaleManagement.Codeunit.al(820,9): info AA0072: The name of POSSession_g is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8867603Z C:\agent\_work\223\s\Codeunit\ICEAfterSaleManagement.Codeunit.al(821,9): info AA0072: The name of EPOSCtrlInterface_g is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8871212Z C:\agent\_work\223\s\Codeunit\ICEAutomaticPrintSendTrans.Codeunit.al(13,9): info AA0072: The name of DocSendingProfile is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8875107Z C:\agent\_work\223\s\Codeunit\ICEClearBlockedVouchers.Codeunit.al(7,9): info AA0072: The name of VoucherHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8878440Z C:\agent\_work\223\s\Codeunit\ICEClearBlockedVouchers.Codeunit.al(19,9): info AA0072: The name of JobHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8881560Z C:\agent\_work\223\s\Codeunit\ICEClearBlockedVouchers.Codeunit.al(20,9): info AA0072: The name of VoucherHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8884604Z C:\agent\_work\223\s\Codeunit\ICEClearBlockedVouchers.Codeunit.al(34,9): info AA0072: The name of VoucherEntry is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8887579Z C:\agent\_work\223\s\Codeunit\ICEClearBlockedVouchers.Codeunit.al(35,9): info AA0072: The name of VoucherLine is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8890406Z C:\agent\_work\223\s\Codeunit\ICEClearBlockedVouchers.Codeunit.al(32,41): info AA0072: The name of VoucherHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8893406Z C:\agent\_work\223\s\Codeunit\ICEPostOpenStatements.Codeunit.al(97,9): info AA0072: The name of SchedulerJobHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8896672Z C:\agent\_work\223\s\LS.Activity\Codeunit\ICEActivityFunctions.Codeunit.al(402,9): info AA0072: The name of ActivitySetup is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.8899933Z Compilation ended at '11:19:57.819'.
2024-01-23T11:19:57.8902742Z *** AL Compiler raw logs: End
2024-01-23T11:19:57.8905408Z *** Start processing compile results.
2024-01-23T11:19:57.9064017Z \Codeunit\ICEAfterSaleManagement.Codeunit.al(816,9): info AA0072: The name of PosMenuHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9073030Z \Codeunit\ICEAfterSaleManagement.Codeunit.al(817,9): info AA0072: The name of POSMenuLine is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9079303Z \Codeunit\ICEAfterSaleManagement.Codeunit.al(818,9): info AA0072: The name of TempPosMenuLine is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9085556Z \Codeunit\ICEAfterSaleManagement.Codeunit.al(819,9): info AA0072: The name of TempPosMenuHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9091606Z \Codeunit\ICEAfterSaleManagement.Codeunit.al(820,9): info AA0072: The name of POSSession_g is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9097710Z \Codeunit\ICEAfterSaleManagement.Codeunit.al(821,9): info AA0072: The name of EPOSCtrlInterface_g is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9104012Z \Codeunit\ICEAutomaticPrintSendTrans.Codeunit.al(13,9): info AA0072: The name of DocSendingProfile is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9111210Z \Codeunit\ICEClearBlockedVouchers.Codeunit.al(7,9): info AA0072: The name of VoucherHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9118595Z \Codeunit\ICEClearBlockedVouchers.Codeunit.al(19,9): info AA0072: The name of JobHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9125113Z \Codeunit\ICEClearBlockedVouchers.Codeunit.al(20,9): info AA0072: The name of VoucherHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9131142Z \Codeunit\ICEClearBlockedVouchers.Codeunit.al(34,9): info AA0072: The name of VoucherEntry is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9137394Z \Codeunit\ICEClearBlockedVouchers.Codeunit.al(35,9): info AA0072: The name of VoucherLine is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9143993Z \Codeunit\ICEClearBlockedVouchers.Codeunit.al(32,41): info AA0072: The name of VoucherHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9150360Z \Codeunit\ICEPostOpenStatements.Codeunit.al(97,9): info AA0072: The name of SchedulerJobHeader is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9156456Z \LS.Activity\Codeunit\ICEActivityFunctions.Codeunit.al(402,9): info AA0072: The name of ActivitySetup is not valid. The name of variables and parameters must be suffixed with the type or object name.
2024-01-23T11:19:57.9190083Z ModuleType Version Name              ExportedCommands                                                                  
2024-01-23T11:19:57.9192323Z ---------- ------- ----              ----------------                                                                  
2024-01-23T11:19:57.9204500Z Script     4.0.14  BcContainerHelper {Add-FontsToBcContainer, Add-GitToAlProjectFolder, AddTelemetryProperty, Backup...
2024-01-23T11:19:57.9305155Z 
2024-01-23T11:19:57.9305378Z 
2024-01-23T11:19:57.9305395Z 
2024-01-23T11:19:57.9305437Z 
2024-01-23T11:19:57.9305487Z Char         : 9
2024-01-23T11:19:57.9305552Z AlertMessage : The name of PosMenuHeader is not valid. The name of variables and parameters must be suffixed with the 
2024-01-23T11:19:57.9305647Z                type or object name.
2024-01-23T11:19:57.9305687Z AlertLevel   : info
2024-01-23T11:19:57.9305764Z RelativePath : \agent\_work\223\s\Codeunit\ICEAfterSaleManagement.Codeunit.al
2024-01-23T11:19:57.9305823Z Line         : 816
2024-01-23T11:19:57.9305859Z AlertCode    : AA0072
2024-01-23T11:19:57.9305940Z File         : ICEAfterSaleManagement.Codeunit.al
2024-01-23T11:19:57.9305965Z 
2024-01-23T11:19:57.9305997Z Char         : 9
2024-01-23T11:19:57.9306080Z AlertMessage : The name of POSMenuLine is not valid. The name of variables and parameters must be suffixed with the 
2024-01-23T11:19:57.9306141Z                type or object name.
2024-01-23T11:19:57.9306202Z AlertLevel   : info
2024-01-23T11:19:57.9306258Z RelativePath : \agent\_work\223\s\Codeunit\ICEAfterSaleManagement.Codeunit.al
2024-01-23T11:19:57.9306309Z Line         : 817
2024-01-23T11:19:57.9306375Z AlertCode    : AA0072
2024-01-23T11:19:57.9306419Z File         : ICEAfterSaleManagement.Codeunit.al
2024-01-23T11:19:57.9306443Z 
2024-01-23T11:19:57.9306493Z Char         : 9
2024-01-23T11:19:57.9306552Z AlertMessage : The name of TempPosMenuLine is not valid. The name of variables and parameters must be suffixed with 
2024-01-23T11:19:57.9307020Z                the type or object name.
2024-01-23T11:19:57.9307061Z AlertLevel   : info
2024-01-23T11:19:57.9307114Z RelativePath : \agent\_work\223\s\Codeunit\ICEAfterSaleManagement.Codeunit.al
2024-01-23T11:19:57.9307192Z Line         : 818
2024-01-23T11:19:57.9307229Z AlertCode    : AA0072
2024-01-23T11:19:57.9307299Z File         : ICEAfterSaleManagement.Codeunit.al
2024-01-23T11:19:57.9307323Z 
2024-01-23T11:19:57.9307354Z Char         : 9
2024-01-23T11:19:57.9307447Z AlertMessage : The name of TempPosMenuHeader is not valid. The name of variables and parameters must be suffixed with 
2024-01-23T11:19:57.9307513Z                the type or object name.
2024-01-23T11:19:57.9307554Z AlertLevel   : info
2024-01-23T11:19:57.9307630Z RelativePath : \agent\_work\223\s\Codeunit\ICEAfterSaleManagement.Codeunit.al
2024-01-23T11:19:57.9307679Z Line         : 819
2024-01-23T11:19:57.9307734Z AlertCode    : AA0072
2024-01-23T11:19:57.9307778Z File         : ICEAfterSaleManagement.Codeunit.al
2024-01-23T11:19:57.9307804Z 
2024-01-23T11:19:57.9307937Z Char         : 9
2024-01-23T11:19:57.9308000Z AlertMessage : The name of POSSession_g is not valid. The name of variables and parameters must be suffixed with the 
2024-01-23T11:19:57.9308060Z                type or object name.
2024-01-23T11:19:57.9308624Z AlertLevel   : info
2024-01-23T11:19:57.9308678Z RelativePath : \agent\_work\223\s\Codeunit\ICEAfterSaleManagement.Codeunit.al
2024-01-23T11:19:57.9308751Z Line         : 820
2024-01-23T11:19:57.9308790Z AlertCode    : AA0072
2024-01-23T11:19:57.9308834Z File         : ICEAfterSaleManagement.Codeunit.al
2024-01-23T11:19:57.9308884Z 
2024-01-23T11:19:57.9308916Z Char         : 9
2024-01-23T11:19:57.9308975Z AlertMessage : The name of EPOSCtrlInterface_g is not valid. The name of variables and parameters must be suffixed 
2024-01-23T11:19:57.9309060Z                with the type or object name.
2024-01-23T11:19:57.9309101Z AlertLevel   : info
2024-01-23T11:19:57.9309186Z RelativePath : \agent\_work\223\s\Codeunit\ICEAfterSaleManagement.Codeunit.al
2024-01-23T11:19:57.9309237Z Line         : 821
2024-01-23T11:19:57.9309295Z AlertCode    : AA0072
2024-01-23T11:19:57.9309340Z File         : ICEAfterSaleManagement.Codeunit.al
2024-01-23T11:19:57.9309365Z 
2024-01-23T11:19:57.9309395Z Char         : 9
2024-01-23T11:19:57.9309474Z AlertMessage : The name of DocSendingProfile is not valid. The name of variables and parameters must be suffixed with 
2024-01-23T11:19:57.9309598Z                the type or object name.
2024-01-23T11:19:57.9309788Z AlertLevel   : info
2024-01-23T11:19:57.9310029Z RelativePath : \agent\_work\223\s\Codeunit\ICEAutomaticPrintSendTrans.Codeunit.al
2024-01-23T11:19:57.9310280Z Line         : 13
2024-01-23T11:19:57.9310373Z AlertCode    : AA0072
2024-01-23T11:19:57.9310466Z File         : ICEAutomaticPrintSendTrans.Codeunit.al
2024-01-23T11:19:57.9310567Z 
2024-01-23T11:19:57.9310642Z Char         : 9
2024-01-23T11:19:57.9310760Z AlertMessage : The name of VoucherHeader is not valid. The name of variables and parameters must be suffixed with the 
2024-01-23T11:19:57.9310948Z                type or object name.
2024-01-23T11:19:57.9311029Z AlertLevel   : info
2024-01-23T11:19:57.9311182Z RelativePath : \agent\_work\223\s\Codeunit\ICEClearBlockedVouchers.Codeunit.al
2024-01-23T11:19:57.9311294Z Line         : 7
2024-01-23T11:19:57.9311366Z AlertCode    : AA0072
2024-01-23T11:19:57.9311539Z File         : ICEClearBlockedVouchers.Codeunit.al
2024-01-23T11:19:57.9311597Z 
2024-01-23T11:19:57.9311660Z Char         : 9
2024-01-23T11:19:57.9311831Z AlertMessage : The name of JobHeader is not valid. The name of variables and parameters must be suffixed with the type 
2024-01-23T11:19:57.9311955Z                or object name.
2024-01-23T11:19:57.9312072Z AlertLevel   : info
2024-01-23T11:19:57.9312184Z RelativePath : \agent\_work\223\s\Codeunit\ICEClearBlockedVouchers.Codeunit.al
2024-01-23T11:19:57.9312279Z Line         : 19
2024-01-23T11:19:57.9312584Z AlertCode    : AA0072
2024-01-23T11:19:57.9312672Z File         : ICEClearBlockedVouchers.Codeunit.al
2024-01-23T11:19:57.9312716Z 
2024-01-23T11:19:57.9312828Z Char         : 9
2024-01-23T11:19:57.9312943Z AlertMessage : The name of VoucherHeader is not valid. The name of variables and parameters must be suffixed with the 
2024-01-23T11:19:57.9313103Z                type or object name.
2024-01-23T11:19:57.9313187Z AlertLevel   : info
2024-01-23T11:19:57.9313287Z RelativePath : \agent\_work\223\s\Codeunit\ICEClearBlockedVouchers.Codeunit.al
2024-01-23T11:19:57.9313440Z Line         : 20
2024-01-23T11:19:57.9313509Z AlertCode    : AA0072
2024-01-23T11:19:57.9313637Z File         : ICEClearBlockedVouchers.Codeunit.al
2024-01-23T11:19:57.9313688Z 
2024-01-23T11:19:57.9313751Z Char         : 9
2024-01-23T11:19:57.9313920Z AlertMessage : The name of VoucherEntry is not valid. The name of variables and parameters must be suffixed with the 
2024-01-23T11:19:57.9314047Z                type or object name.
2024-01-23T11:19:57.9314125Z AlertLevel   : info
2024-01-23T11:19:57.9314277Z RelativePath : \agent\_work\223\s\Codeunit\ICEClearBlockedVouchers.Codeunit.al
2024-01-23T11:19:57.9314372Z Line         : 34
2024-01-23T11:19:57.9314487Z AlertCode    : AA0072
2024-01-23T11:19:57.9314575Z File         : ICEClearBlockedVouchers.Codeunit.al
2024-01-23T11:19:57.9314620Z 
2024-01-23T11:19:57.9314714Z Char         : 9
2024-01-23T11:19:57.9314835Z AlertMessage : The name of VoucherLine is not valid. The name of variables and parameters must be suffixed with the 
2024-01-23T11:19:57.9314953Z                type or object name.
2024-01-23T11:19:57.9315080Z AlertLevel   : info
2024-01-23T11:19:57.9315181Z RelativePath : \agent\_work\223\s\Codeunit\ICEClearBlockedVouchers.Codeunit.al
2024-01-23T11:19:57.9315329Z Line         : 35
2024-01-23T11:19:57.9315401Z AlertCode    : AA0072
2024-01-23T11:19:57.9315484Z File         : ICEClearBlockedVouchers.Codeunit.al
2024-01-23T11:19:57.9315577Z 
2024-01-23T11:19:57.9315646Z Char         : 41
2024-01-23T11:19:57.9315757Z AlertMessage : The name of VoucherHeader is not valid. The name of variables and parameters must be suffixed with the 
2024-01-23T11:19:57.9315935Z                type or object name.
2024-01-23T11:19:57.9316010Z AlertLevel   : info
2024-01-23T11:19:57.9316162Z RelativePath : \agent\_work\223\s\Codeunit\ICEClearBlockedVouchers.Codeunit.al
2024-01-23T11:19:57.9316261Z Line         : 32
2024-01-23T11:19:57.9316328Z AlertCode    : AA0072
2024-01-23T11:19:57.9316565Z File         : ICEClearBlockedVouchers.Codeunit.al
2024-01-23T11:19:57.9316654Z 
2024-01-23T11:19:57.9316757Z Char         : 9
2024-01-23T11:19:57.9316881Z AlertMessage : The name of SchedulerJobHeader is not valid. The name of variables and parameters must be suffixed with 
2024-01-23T11:19:57.9316998Z                the type or object name.
2024-01-23T11:19:57.9317124Z AlertLevel   : info
2024-01-23T11:19:57.9317225Z RelativePath : \agent\_work\223\s\Codeunit\ICEPostOpenStatements.Codeunit.al
2024-01-23T11:19:57.9317365Z Line         : 97
2024-01-23T11:19:57.9317444Z AlertCode    : AA0072
2024-01-23T11:19:57.9317526Z File         : ICEPostOpenStatements.Codeunit.al
2024-01-23T11:19:57.9317614Z 
2024-01-23T11:19:57.9317681Z Char         : 9
2024-01-23T11:19:57.9318375Z AlertMessage : The name of ActivitySetup is not valid. The name of variables and parameters must be suffixed with the 
2024-01-23T11:19:57.9318491Z                type or object name.
2024-01-23T11:19:57.9318939Z AlertLevel   : info
2024-01-23T11:19:57.9319131Z RelativePath : \agent\_work\223\s\LS.Activity\Codeunit\ICEActivityFunctions.Codeunit.al
2024-01-23T11:19:57.9319472Z Line         : 402
2024-01-23T11:19:57.9319852Z AlertCode    : AA0072
2024-01-23T11:19:57.9320239Z File         : ICEActivityFunctions.Codeunit.al
2024-01-23T11:19:57.9320315Z 
2024-01-23T11:19:57.9320456Z 
2024-01-23T11:19:57.9321440Z 
2024-01-23T11:19:57.9385659Z *** Set Pipeline variable $(ALOPS_COMPILE_LOG) = 'C:\agent\_work\223\s\Tegra_LS2.0_22.4.20240123.24929.log'
2024-01-23T11:19:57.9730993Z *** Uploading App as Build-Artifact
2024-01-23T11:19:58.0059183Z *** Publishing XLIF as Artifact
2024-01-23T11:19:58.0059272Z *** Found XLIF File: C:\agent\_work\223\s\Translations\LS2.0.g.xlf
2024-01-23T11:19:58.0059488Z *** Uploading XLIF as Build-Artifact
2024-01-23T11:19:58.0278858Z ##[section]Async Command Start: Add Build Tag
2024-01-23T11:19:58.0279004Z Build '24929' has following tags now: AL.Analyzer.CodeCop
2024-01-23T11:19:58.0279102Z ##[section]Async Command End: Add Build Tag
2024-01-23T11:19:58.0279477Z ##[section]Async Command Start: Add Build Tag
2024-01-23T11:19:58.0279608Z Build '24929' has following tags now: AL.Analyzer.CodeCop, AL.Analyzer.UICop
2024-01-23T11:19:58.0279692Z ##[section]Async Command End: Add Build Tag
2024-01-23T11:19:58.0280039Z ##[section]Async Command Start: Update Build Number
2024-01-23T11:19:58.2953814Z Update build number to 22.4.20240123.24929 for build 24929
2024-01-23T11:19:58.2953889Z ##[section]Async Command End: Update Build Number
2024-01-23T11:19:58.2954326Z ##[section]Async Command Start: Upload Artifact
2024-01-23T11:19:58.2954375Z Uploading 1 files
2024-01-23T11:19:59.7305838Z File upload succeed.
2024-01-23T11:19:59.7305928Z Upload 'C:\agent\_work\223\a\Tegra_LS2.0_22.4.20240123.24929.app' to file container: '#/12027200/ICE_LS-2.0'
2024-01-23T11:19:59.7305980Z Associated artifact 32528 with build 24929
2024-01-23T11:19:59.7306032Z ##[section]Async Command End: Upload Artifact
2024-01-23T11:19:59.7306706Z ##[section]Async Command Start: Upload Artifact
2024-01-23T11:19:59.7306760Z Uploading 1 files
2024-01-23T11:19:59.7306790Z File upload succeed.
2024-01-23T11:19:59.7306833Z Upload 'C:\agent\_work\223\s\Translations\LS2.0.g.xlf' to file container: '#/12027200/ICE_LS-2.0'
2024-01-23T11:19:59.7306889Z Associated artifact 32528 with build 24929
2024-01-23T11:19:59.7306925Z ##[section]Async Command End: Upload Artifact
2024-01-23T11:19:59.7307851Z ##[section]Finishing: ALOpsAppCompiler

Expected behavior Pipeline should fail since there is warnings in the compiler

waldo1001 commented 8 months ago

Hi,

there are no warning, but "info".
Can you please check your ruleset to see if you demoted the rules?

rasmusskov commented 8 months ago

My ruleset only have AL0432 in it, and im seing the warnings in vscode.
But i understand from the setting name of course that we are using FailOnWarnings.. But what if we want to have FailOnInfo... I seem to remember that pipelines has failed on "info" previously

{     
    "name": "BC",     
    "description": "Rules",     
    "generalAction": "Hidden",     
    "rules": [
        {
            "id": "AL0432",
            "action": "Hidden",
            "justification": "Marked for removal"
        }
    ]
}
waldo1001 commented 8 months ago

May be you can bump from Info to Warning, as that is what you want?

info is Info - we never should have failed on that .. .

{     
    "name": "BC",     
    "description": "Rules",     
    "generalAction": "Hidden",     
    "rules": [
        {
            "id": "AA0072",
            "action": "Warning",
            "justification": "Force a warning to fail pipeline"
        }
    ]
}
rasmusskov commented 8 months ago

We are trying to enforce a problem free project, and that includes everything.. Ie.. keep the "info" as info in vscode, but have the pipeline fail if there is any Maybe a feature request to have a new setting in the pipeline to fail on infos also?

waldo1001 commented 8 months ago

We'll add a "FailOnAny" setting in a future release.

waldo1001 commented 7 months ago

Should have been fixed in 1.462.